Distributed Key Generation, UX Unconference

UX Unconference at Devconnect Amsterdam 2022 · 30 Jun 2022 · 7:35

Collin Myers and Oisin Kyne of Obol walk through the solo staking user flow on the Ethereum Launchpad, then turn to distributed validators. The talk explains how splitting a validator across several nodes gives fault tolerance, why distributed key generation matters so no one machine holds the whole key, and which UX challenges follow: identity, hosting, browser limits and combining wallet signing with a command line tool. A short Q&A clarifies shared secret validators.

Speakers

Topics

From UX Unconference at Devconnect Amsterdam 2022, hosted by Ethereum DEV NL.

Transcript

[Music] hey everyone i'm chris and this is o'sheen we're working on obel so today we're going to be talking about dkg and cooperative staking but before we go on to the fun stuff i want to give a bit of a background on uh the current user flow for solo staking for an individual this is the launch pad or when we started working on it a couple years ago the e2 launch pad and you can go to it at launchpad.ethereum.org um so some of our design goals um the

key user flow or the main user flow was education key gen to generate your keys and then deposit and like the primary goal that we had in our designing workshops was that nobody loses funds this was like extremely important even more so than like we would we'd be fine having drop off but like making sure that nobody loses funds when depositing using this interface so we started off with like a whole list of advisories um you know and like even as basic as like what is proof of stake um key gen management uptime and slashing um and like the commitment because withdrawals we're not going to be enabled until after the merge

so also you walk the user through the execution client formerly known as eth1 client so gath nethermine etc and uh setting up their consensus client formerly known as the e2 client um hopefully you recognize those lighthouse take you president and nimbus no love for lowstar uh yeah well we can add that soon we can anyone can submit a pr and we put it in there so um so yeah uh so yeah so you would the the trickiest part about the user flow is actually like just you had to remove the user from the dap and take them through uh the terminal to generate their keys um think about it like generating key or

generating your seed phrase for metamask um and you have like a seed phrase that controls a bunch of accounts and in this case um also accounts but really validators um so it uh so yeah you would you generate this um you can see amazing you see leslie the rhino here in the terminal and um this is effectively an hd wallet controlling multiple validators um uh yeah and so um also the output so you'd get your mnemonic um and then you would also get uh this deposit file um and this deposit file would include um uh what would be one file for multiple validators and multiple rows and include the pub key which is the validator public key

the the network name so like think for eth1 mainnet ring could be robsten but for e2 and the deposit data route which is like used to verify the parameters and then the signature which is basically effectively the proof that you own the public key and then you would connect your wallet and walk through your 32 each deposit per validator so that is the current flow and you can go to it again on launchpad.ethereum.org and now for the fun part no sheen we'll talk about validating as a group cheers thank you um hey guys my name is oshin i am working on opal network and today we're looking at distributed key generation for distributed validators so briefly before we get into the key generation

part what is a distributed validator and the idea is for those of you that are familiar with an existing validator you have your private keys on one machine and these computers die invariably and you can't bring up a backup without risking getting slashed and so you're kind of stuck in no man's land until you can fix the server um what we're building with distributed validator technology is an extra middleware client that sits between the validator and the beacon client and it basically has four or more nodes um all signed stuff and it re recombines the signature and broadcasts it as a group and the trick about it is you only need three of the four to be online to be able to stay up so this is the first time you have high available fault tolerant validators

um and that's a very powerful technology however um depending on how this is done this could end up where you know coinbase just runs all four inside like four different availability zones of amazon that's not really what we want to get to what we really want is we want four different companies or you know four different friends all running a piece of the validator rather than one person having total control and a very key part of this is how do you actually create these keys because if you have one person create them in a centralized manner and give them to everyone it's kind of the weakest link in your entire chain so this is where distributed key generation comes in so distributed key generation is the idea that a group of people all create um a piece of a key and it never

exists on one person's machine at any point in time and this is something that's been around for quite a long time but it hasn't been in there hasn't been a lot of ux investment in it i guess is what i'll say um so there's lots of different challenges and we at oval um are doing um quite a lot in it and we'll chat more about it at the eat sticker thing tomorrow but um we've questions like you know do you host a centralized server to like enable this communication um how do you know who is taking part are you making assumptions about you know identity somewhere in the stack um if you're not hosting a central server do you know if your users can open up a web server their own and can they set up you know https on that web server safely not

likely is what our user testing told us and then other questions like can you substitute a user into a group if you know one person's not like performing so um we won't get too much into the like solutions we've been working on the last while but we originally built um an implementation where everyone runs their own web server that was okay but it ran into the problems of like running like servers then we tried to do it all in browser but you run into problems of like centralization having to run you know centralized servers because the web browser can't you know talk to other web browser without something in the middle um and now we're like mixing and matching and like having half the key generation happen in the browser where you have your metamask and you can sign for identity and you take that file to a cli tool not unlike the

existing launch pad and continue the dkg there and that's kind of the the best of both worlds and that it you know allows us to make sure they have their network connected but we can still rely on metamask or like ethereum identities for for key generation that's it thank you very much case thank you as far as like terminology et cetera is concerned when you hear ssv and share secret validator etc how does it differ it's always similar yeah um shared secret validators became a name of a project in the rc20 token and the like so the ethereum foundation effectively said let's call it distributed validators people get the idea more but yes it was originally called ssv but now it's the

distribution validator technology is usually what it's called awesome thank you [Applause] [Music] you

Related talks