The KZG Trusted Setup Ceremony with Geoff Lamperd
ETH Seoul 2022 · August 2022 · 14:04
Geoff Lamperd of the Ethereum Foundation's Privacy and Scaling Explorations team explains the KZG trusted setup ceremony behind EIP-4844 (proto-danksharding) and data availability sampling. The talk covers how a multi-party ceremony stays secure if just one participant discards their secret, why joining should take only a quick browser contribution, and how varied client software, public records and verifiers add resilience. It also invites builders to create their own clients, compute engines, verifiers and dashboards, with the ceremony expected to start around Devcon.
Speakers
Topics
From ETH Seoul 2022, hosted by Kryptoplanet.
Transcript
right um hi i'm jeff from ethereum foundation's privacy and scaling explorations team and i'm i'm helping out with a a an ethereum project the kcg trusted setup ceremony uh if you've been following on uh the the road map for ethereum you will have you'll be familiar with um eip 4844 that's uh proto tank charting and um uh data availability sampling for um for roll-ups and the the uh that's all driven by kzg
polynomial commitments um and those polynomial commitments need a trusted setup um so uh what we what we want to do as a community is get everyone contributing to this trusted setup now once upon a time what i've heard i learned that koreans don't say once upon a time they say back in the days when tigers smoke long pipes sounds like a great time to to be around so um anyhow back in those days trusted setups were a pretty complicated difficult sort of thing
with lots of uh complicated interactions between the participants uh but um these days the protocol is quite a bit simpler and the other things we have going for us in this situation is um is we don't have a zero knowledge trusted setup it's just a it's a polynomial commitment trusted setup and [Music] it's it's only for us a relatively small number of points like 2 to the 16 or 2 of the 15 is our is our largest sub-ceremony so um it's it's like much smaller than if you've contributed to trusted setups before this is quite a
bit smaller than those so it's going to be nice and easy for people to contribute to it'll be a fairly quick computation um maybe the actual computation should be a few seconds maybe 10 seconds or something and then less than a minute to upload and download and do the computation so everyone is going to find it really easy to do it's going to run in a browser uh be you know quick sign on protocol and then just let it run so nice and easy for everyone to do um we need
to get um each each contributor has to do has to we can only have one at a time and uh there'll be a coordinator um collecting these contributions and then figuring out who to pass it on to and so one at a time the contribution is passed along around the participants [Music] and the security properties are that if we get one person who successfully uh discards the secret they that they put into this computation then it's going to be secure so um
just an analogy to to understand how that works um if you have a if you have a private key and you do the elliptic curve multiplication and you end up with a public key and if if you pass your public key to me and i mix it with my private key we end up with a new public key and if i then throw away my private key then we can't derive that that new public key again so um so we'd need to have both those yours and mine yours and my private keys together to rederive that public
key now if we multiply that situation by hopefully thousands of times then all we need is one of us to actually successfully throw away the secret that we put into that that that private key uh that we put into the computation and then we're secure um so that's what we're aiming for um we uh we need to defend against the tax we need to make sure that with the whole process is secure so um our main avenue for defense is to get lots and lots of participants so we're going to make it nice and easy
for people to just do the contribution and hopefully we'll get thousands um so you know if we got a chain of a thousand contributions all we need is one one of those people to successfully hide their their secret and we're good um we will however um think of other possibly other possible avenues of attack um if if somehow the software we're using is is compromised then we need to we need to think that someone might be siphoning off all those secrets um so we need to defend against that so
what we're going to do is have lots of variations in the actual software that people are using so we're going to try we're going to build apis so people can write their own clients and we'll publish our own client so that people can just use it out of the box or people can use the apis to build their own and then we get some variation in the the stack that people are using to uh to do this ceremony um and by that mechanism we hope to get better resilience against the tax i won't just be uh
the actual client the client will do like interactions with the coordinator um to uh know maintain that cue position and accept the download and do the upload we'll also have an sdk that purely does the computation part of it so um so if if you for anyone who's interested in building some of these components uh we would welcome old contributions um and we'll we'll publish the apis so so you can do it fairly easily and as well as that we'll have security
checks around around each contribution to make sure each each one is valid we can check that the contribution is valid that it there's no um [Music] uh yeah that it's a valid sequence in the chain of of contributions uh you will get a like a fingerprint for your individual contribution as a contributor so um and you'll be able to uh match that against a public record of all the contributions so we'll make all this data public we'll have a big dashboard that will show people contributing and and and
a link to like a permanent record of of all contributions so you should be able to remember your signature for your contribution and look it up in in the in the public record and that ensures that the coordinator is not like swapping in their own data and and corrupting the the ceremony that way um yes so the actual process of uh contribution is um there'll be a simple sign on very simple like three clicks probably signed
in with with your ethereum address um then you can join the queue at a time of your choosing uh and we'll as i said we'll have a dashboard and it'll show like how long the queue is we're hoping that the queue will be fast moving but of course this is going to be quite [Music] widely publicized and we're hoping for lots and lots of contributions but so there could be a bit of a queue but it should be quite fast moving because this is a very quick contribution so you'll join the queue you'll when
you're when you come to the head of the queue you'll request the latest valid contribution from the previous contributor uh you'll generate some randomness and that's that's your secret that must not leave your environment with that randomness you'll feed it into the contribution you'll update the uh the data and you'll send that back to the server and then make sure the randomness is thrown away so all of this for ordinary user this will all be uh behind the scenes you just do those couple of clicks to sign on and click a
button to let it go and then the browser will look after the rest but if you're interested in building a client api you'll these are the steps you'll you'll do we'll have api apis for all of these things um so yeah there's lots of ways to contribute um we want we want to get everyone just doing a contribution in the browser but if you're interested in doing a hackathon project or just doing a side project on your own we'd love your contributions build a client you can build a compute engine you could build a fancy client doesn't
need to be a client that runs in the browser you could run it in a cli you could run it in a google colab workbook just go wild with that when we're doing the like the bulk contribution phase we will have time limits um so we'll have some sort of expectations around how how fast this should turn around but we're gonna we're gonna have multiple stages here so there'll be that bulk contribution stage and then we'll go into another phase where we're a lot more tolerant about the timings and we're just inviting like
open slather on how you want to generate the randomness and compute it um and people you know if someone wants to put their laptop in a faraday cage and have a radioactive banana with a geiger counter to generate randomness and whatever just think of crazy ideas and we'll have a time for you to contribute like that um the ceremony i think will will looks like we'll start in october around the time of devcon probably uh that that uh bulk collection phase uh forget the timings maybe a month or two uh we just need to get this um completed
in plenty of time for the shanghai upgrade which is like sometime next year um uh yeah and there's other ways to contribute too like this thing will need verifiers if you want to build your own verifier to to verify people's contributions that would be great um or build yourself a dashboard so if you want to we'll have a dashboard but um if you if you can want to build your own that'll be great um uh yeah so there's lots of opportunities to to build things around this um uh and
every contribution especially in those computation phases is going to be a really valuable bit of diversity that we can build into this ceremony um so yeah this is really one of those upgrades that uh you know it's not just the boffins in in the back rooms who are who are developing it it's one that we can all be involved in in some way or other so uh look out for um look out for notifications about when the ceremony will start if you want resources for you know the apis the specifications for the data format the
planning meetings they're all on this link here and um please yeah you're welcome to come up and talk to me and find out more and if we have time then we can have some questions if anyone's got any or else or else have fun with a ceremony and we look forward to your contributions thank you
