start	end	text
0	5740	So today we're going to talk about basically sequential time and the trustworthy notion
5740	12420	of it, right? I'm Brian Vohaska. Full disclosure, I just left Protocol Labs. So I'm representing
12420	18700	Protocol Labs and this broke again. All right. I don't know what's up. So it's like I'm not
18700	23360	at Protocol Labs. Don't ask me Protocol Labs questions. This is Simon Pevers. He's a super
23360	28440	national. They're responsible for basically all the goodness, right? Like the actual implementation
28440	35180	of what we're going to talk about. Hey, guys. I know it's pretty loud. Do you mind talking
35180	46740	outside? Thanks. All right. Cool. So this is Simon. I'm Brian. Let's get to it. All right.
46800	53400	So that talk title is pretty vague. What is trustworthy sequential time and all that business?
53400	60020	And why do we care? And like, should we even make it real or whatever? I'm a little distracted
60020	66300	because there's cords on the floor. So if I trip on it, I apologize. Anyway, so I guess the goal is
67300	72220	fundamentally we want some sort of verifiable and trustful time, right? Like I want to know that
72220	77840	when I talk to like Derek, right? And I say, hey, what time do you have? And you say 4 p.m.
78100	82640	And I say, bullshit, I don't believe you. Prove to me that it's 4 p.m. And you go and you give
82640	86680	me some proof or something. That would be cool. Not particularly interesting. If I could prevent
86680	92180	him from doing something until some sort of 4 p.m. And then he could prove to me that, oh, it's 4
92180	95940	p.m. And I can now do something. That would be much more useful. And we'll get into what that
95940	101080	means and applications and sort of things. So why do we want this sort of thing? Well, I mean,
101680	108760	come on. Well, I mean, synchronization, obviously, would be super awesome. If we could all agree on
108760	113920	some sort of definition of time. We all have synchronous clocks. And do some interesting
113920	119440	things at like 4 p.m. or something, right? That would be super cool. If we could query some
119440	126860	service. I call it the Oracle of time. Like Oracle Delphi. No? All right. That would be really cool
126860	130480	where you can't really predict whatever's coming out of here. You just know that at some time,
130480	134360	you get some information out. You can verify that it happened at time. Right? And time...
136920	145620	Sorry, guys. I don't know how to make that better. It's been doing that for everybody?
145660	151380	Okay. All right. Well... It's more on than off? Okay. And then fundamentally,
151380	156320	like presume that you could do this. There's some magical box or something. How do we actually do
156320	162700	this? Well, there's a bit of math and a bit of hardware. And it turns out you can't really solve
162700	168120	this problem without both of them. So, sort of moving on. What is the agenda for this talk? And
168120	173580	it's basically me talking to you about mathy things. And then after I'm done regaling you
173580	179320	with math, Simon actually does real stuff. And I think that's sort of the juicy part of the talk.
180400	185840	So, right. So, I mentioned kind of what this trustworthy notion of time is. Cool story,
185840	190200	bro. Why do I care? Well, it turns out there's some really cool things you could do if you had
190200	197320	magic box device something. One of them is self-revealing commitment. So,
197320	204840	suppose that I say I pinky swear to reveal some secret to you in four days. And maybe that's a
204840	210140	wallet password or something. I pinky swear to give you this money stored in some wallet or
210140	214720	something. And you say, no, that's bullshit. I don't believe that you're actually going to give
214720	219160	this to me. So, what you can do is if you had this magical device that gave you this
219160	224320	verifiable time component, maybe some randomness that corresponded to some sort of unlocking key,
224320	229300	then you could say, like, here is this problem that if you solve this problem, I know it's
229300	234320	probably going to take me four days, then you will get this key that is necessary to unlock
234320	238480	this thing that you can do something useful with. So, self-revealing commitments. Random
238480	244340	beacons are really important along this line. So, I want to know every 30 seconds or so, like,
244340	248240	the value of this random beacon. But I don't want people to be able to fast forward. Because
248820	252440	maybe they could know the random beacon information and do something nefarious.
252440	256620	Turns out that's super important for Ethereum and super important for Filecoin.
256940	262600	You could also do something called verifiable lotteries. That is also super important to
262600	268200	Filecoin. Something we call secret single leader election. Or secret single leader election.
268200	273360	There's a hyphen in there somewhere. It's contentious. Anyway, so, it turns out, like,
273360	277160	you know, in most of these consensus mechanisms, you have a leader election.
278240	284320	It's effectively a lottery. It would be nice if you could basically have a delay on when those
284320	289080	leaders are elected. And you could know, like, one, it's verifiably random. And two, it could
289080	294060	only happen every so often. So, you don't want people to be a leader first or know they're not
294060	299280	going to be a leader within some sort of epsilon of time. That would be really cool. So, what does
299280	305020	this apply to for blockchains? I mean, Protocol Labs cares about this. Ethereum has funded a lot
305020	311080	of the research with Protocol Labs. So, for Protocol Labs, it's proof of space time. We need
311080	317500	this bounded delay function. There's no way around it. We actually use it in expected consensus,
317500	322480	if you're familiar with that. If not, look it up. It's pretty cool. So, verifiable bounded delay,
322480	328440	really cool stuff. If you go back into, like, the back in the day theory for consensus mechanisms,
328440	333220	you'll find that most BFT systems are bounded delay. That's an assumption they make.
333220	338260	So, if you can enforce bounded delay, you get a lot of security guarantees that you don't need
338260	343680	to make further assumptions on. So, why do we actually care? Is there an example where we'd
343680	349240	actually ever use this in real life? It turns out, yeah. This is something that came in, I think it
349240	356120	was, like, Serbia or something, like, a few years ago, where you can see that the balls are, you
356120	359560	know, it's like the lottery thing where the balls come out and you know the number and pick it up
359560	363700	and read it. And all the balls are filled. But none of the balls or a few of the balls have been
363700	368200	drawn. So, you'll see, like, whoever ran this lottery knew the answer before they actually did
368200	372940	this sort of random pull out thing. So, something unusual happened that's really terrible. I stole
372940	378040	the side from my colleague. I thought it was pretty cool. So, this would be really terrible.
378040	384840	We could prevent that with these magical, like, box function things. So, I said some sort of
384840	388720	heuristics. Like, it would be nice two halves. But maybe we could formalize this a little bit
388720	392940	more and say, what do we actually want to guarantee? Like, what does security mean? Like,
392940	397300	cool, we have this verifiable time thing. What does it absolutely need to do? And, Mickey,
397300	402400	maybe can we, like, formalize some of this process, right? And so, this work was done a few
402400	408820	years ago. Actually, no, it's about a year ago. A year and a half. By some of my colleagues, Ben
408820	414440	Fish, Dan and some others. And they decided to formalize a lot of this and write something called
414440	419660	verifiable delay functions. And they wrote a paper on it. It's pretty awesome. Recommend reading
419660	425460	it. So, there's always going to be a setup component, right? This is a mathy sort of thing.
425460	429040	It's really helpful for security models. But basically, you need to set up your function.
429040	432820	You need to set up your system. You need to take in some set of public parameters, whatever they
432820	438200	are. Public keys. Whatever floats your boat. Whatever the function needs. And you need some
438200	443260	security parameters. Security parameters are often just labeled as lambda. They're kind of fuzzy.
443260	450180	You ever see lambda in literature? That's usually what it means. This is security parameters. You
450180	454280	need an evaluation function. It needs to do something and it needs to output a proof. That's
454280	458780	basically all this means. Take in some public parameters. Take in a seed of some kind. Do
458780	463380	something. And then provide a proof that you did something. You did it correctly. And the last bit
463380	467580	is verify, right? And that's given the proof, given the something, given the thing you claimed
467580	473240	you did, does it work? True or false? So, it seems like that's not important. But it turns out
473240	478240	it's super, duper important for any type of proving in the system. So, what do we actually
478240	485180	want from this magical function? We need uniqueness, right? So, if everybody has the same magic box,
485180	491580	and in 30 seconds, we get this, like, verifiable delay and you get, like, time out of it or you
491580	495980	get, like, a seed out of it or you get some random bits or something, we should all have the same
495980	500940	random bits, right? Like, you can't have, like, somebody having a new set of random bits. It's
500940	505280	actually true, right? And it's like, oh, I have my magic box that isn't unique anymore. So, I have
505360	509420	a different value. And if I can get more than one value, right, then maybe I could cheat. It turns
509420	514360	out that's a huge security problem. So, we require uniqueness. The other thing is called epsilon
514840	518960	sequentiality. This is a formal word, but it basically means there's no way to do this in
518960	524180	parallel, right? If you had a million of these boxes running, it doesn't give you an advantage,
524180	529500	right? Like, you just spend a lot of money buying a million boxes. So, one is plenty, right? So,
529500	533720	the next thing is, okay, cool, we have these mathy theoretical things. What does that mean
533720	542640	in real life? Can such a magical box exist? And it turns out, eh, kind of, right? And here's some
542640	548900	assumptions that you need to make. And that's your ability to do this sort of magic boxy thing
548900	554040	is usually based on something you can't touch that nobody can touch in the world, right? So,
554040	558980	something in space or something. Or hardware assumptions, right? So, your ability to compute
558980	563920	some function, right? And that's actually the way we go. We'll talk about this in maybe the next
563920	569320	slide or so. I'm not gonna cover this AMAX thing. It's not important until we get to the hardware
569320	576560	stuff. So, you might think, surely somebody has done this in the past. They have. There's some
576560	582300	centralized approaches. I mean, like, signed time protocols. They work. They're great. In
582300	585400	blockchain, that's not great, though, because you have usually one entity that controls all the
585400	592540	time. That's really not great for us. So, we tend to avoid that. So, like, most of these things
592540	597180	that are centralized don't quite meet the product requirements, if you will. They don't meet what
597180	601720	we're looking for. There are some distributed approaches that work really well. There's
601720	607460	multi-party computational techniques you can use. They're really expensive. Like,
607460	611680	unbelievably computationally expensive. And if they're not computationally expensive,
611680	616700	they're sort of communication expensive. So, coordination is really nasty. So, we try to
616700	622840	avoid those. There's some things that use, like, computation. It's more or less a subset of
622840	627840	multi-party computation. It's expensive. This cosmic events thing is kind of interesting.
627840	631720	Usually whenever these functions come up, people are like, oh, just look into space, and you see,
631720	637340	like, some event that has happened. And that's fantastic. Except, you know, like, if something
637340	641620	happens in space, not everybody can see it. So, like, somebody gets an advantage, that kind of
641620	648340	sucks. So, we don't do that. So, what do we actually do? And that is verifiable delay functions.
648340	652200	That's the formalism. That's the term. You can look this one up, and you'll find all this stuff.
652780	659540	What are VDFs? So, VDFs are this magic box, right? This is sort of how we formalize the magic box
659540	665540	that we're gonna talk about, right? And, like, there was a paper with Dan and Ben in, like,
665540	671960	2018, where they formalized all this, and basically exactly what I told you. There's a
671960	679160	sequential stepping thing. It computes a thing. We believe it takes so long to do it. And the
679160	684460	output of that, that proof component, is really fast to verify. And that's really, really important.
684460	689760	I wrote PBT, probabilistic polynomial time. It's a formalism. It's important, but you can read it
689760	694620	as, like, it's fast. So, VDF notation is the same as what I showed you before. Probably not
694620	701540	important for here. At any rate, one of the things that is really important for VDFs is this
701540	708880	epsilon sequentiality. You can't parallelize it. It's important. Whatever. At any rate, so, how do
708880	712200	we actually build this thing? And that's probably what most people are interested in. Cool. Magic
712200	718640	box exists. It does cool stuff. How do we build it? It turns out that Ron Rivest, some time ago,
719240	726140	did something similar without the efficiency component. And he was like, hey, I have RSA
726140	732460	stuff. I have an RSA number. What if I just raise things to a gigantic power? Right? Like, I don't
732460	738000	know. Lots of zeros and stuff. So, like, X to the really gigantic thing. How long would it take to,
738000	743720	like, do that? It turns out it's really expensive. And so, like, you can do some clever approaches
743720	748180	to, like, bound how expensive it would be. This sort of approach where you take X to the 2T.
748180	756800	The 2T is basically a carryover from square. What is it? Like, a squaring trick where you can
758780	762540	divide by 2 and you can, like, square things and square and square and square. And it sort of
762540	767620	works out and makes things a little faster. So, 2T is the number of exponentiations you're going
767620	774500	to make. 2T is the exponent. So, he found that's really expensive to compute. It would be really
774500	779820	cool if I hit something in X and then in, like, really far away somebody was able to compute this
779820	787200	and reveal what X was. See? It's verifiable. At some point, you'll be able to finish this
787200	791420	computation. You'll be able to figure out what X is and you'll be able to tell me and, like,
791420	796940	I'll be really happy and we'll have a big ceremony and Simon will get invited and he'll get awards
796940	802380	and stuff and I'll be really happy. That did happen, by the way. So, it turns out he did that.
802380	809540	Problem is, that 2T is really huge in order to be, like, useful. And we wouldn't want people to
809540	815480	waste, like, 35 years computing a thing. So, we needed something much more efficient. Turns out
815480	822200	we have it. There's these two mathematicians. I think Ben Wozolowski is French and I think
822760	829540	Piersak is Polish. It's not important. But they're really fantastically smart folks.
829540	835280	And they found sort of a cheat, right? And it was, well, we'll just do what Ron did. We'll have
835420	840740	a G to the well, G is just a group element, but this X thing to the 2T. Same as everybody else,
840740	846780	we know that's hard. And we'll figure out how to make the proof while we do all this 2T business.
846800	852380	So, maybe while we're computing this G to the 2T thing, we can do something on the side that, like,
852380	859520	when we're done, for a little bit extra work, we can prove to somebody very efficiently that,
859520	866840	you can do that, right? And here's effectively the algorithm. You compute the X to the 2T. So,
866840	870560	this notation is a little wonky, but basically what it's saying is you have a hash function.
870640	874460	This hash function isn't like a regular hash function. It basically says take some input
874460	880680	and map it to inside this group. So, for RSA, it's like RSA2K, whatever your modulus is,
880680	885400	hash it to less than that modulus within your group. So, this is fancier notation. But that's
885400	892120	what it's saying. So, SHA2 would work here. Asterisks. There's some issues. But you need
892180	898100	a hash function. That's the group. Not important. So, you take that. Then you just do the 2T,
898100	901720	right? You get an answer. It takes forever. But on the side, what you're actually doing here is
901720	908600	you sort of break down 2T into this Q times L plus R thing. It looks really weird, right? L comes
908600	914600	from the person who is trying to get you to do work. So, when they say, hey, Simon, I want you
914600	920220	to do work, I want you to compute this, like, G to the 2T thing. And also, by the way, here's
920220	924560	an L. L is a prime. It's a random prime from a set of primes that you get to choose how big they
924560	932240	are. Once that's done, you compute this sort of 2TQL business, right? And it turns out if you
932240	937760	do some fancy algebraic stuff, that this bottom thing turns out to be correct, right? And so,
937760	941840	this pi, which is this G to the Q thing, Q is pretty small. Or it can be pretty small. So,
941840	947200	it's pretty easy for you to compute. Whenever you, as a verifier, like, I've said, Simon, do
947200	952680	work. He gives me something back. I don't want to do a lot of work. So, I want to make sure that,
952680	957240	like, L is small and R is small. It turns out if you do this, it is small. It's, like, small enough
957240	962180	to do. And you can verify this super-duper fast. You get this verification thing. It's super
962180	968980	awesome. So, the next question you might ask, like, cool, that's nice, I guess. Is there other
968980	975980	ways of doing this? It turns out there are. But this is so simple. It's awesome. And you'll see
975980	981440	why it's awesome when Simon goes into this a little bit more. But basically, so far in the
981440	986200	research, and this may have changed in the last month or so, but there's two main avenues. RSA
986200	991840	groups, just basically what I showed you before. And something called class groups. They're pretty
991840	1000400	complicated. I'm not going to talk about them at all. The moral of the story is you find a
1000400	1008220	prime that has their properties and you build this quadratic number field and things happen.
1008220	1013780	The advantage for having a class group is there's no trusted setup. So, if you know anything,
1013780	1019480	maybe we don't, about VDFs, with this RSA stuff, you may have noticed, like, hey, if there's a
1019480	1025440	modulus, and I happen to know the primes, I can cheat. So, this G to the 2T thing should be a lot
1025440	1031440	easier to compute. And you'll be right. OpenSSL, whenever you go to encrypt things with RSA,
1031440	1036200	it does this Chinese remainder theorem cheat. I know the primes. So, raising something to some
1036200	1041800	gigantic power is much easier because I can sort of reduce the state space of these
1041800	1047980	multiplications. So, like, you need some way of doing multi-party computation so everybody gets
1047980	1053040	the same modulus without knowing the primes. That's really hard. There's some work to show
1053040	1058040	like we can do that. I think it's now 10 minutes or something from Lero for like 1,000 people. So,
1058040	1062440	that's probably reasonable. With class groups, you don't need to do that. So, it's really
1062440	1067560	attractive. So, some groups like Chia, I think, are doing class group based VDFs, which is pretty
1067560	1072440	cool. The issue with class groups is I'm not really sure if they're sequential. Like, we think
1072440	1077660	they are. But, like, I'm not really sure. They're both really well studied, though. They're pretty
1077660	1082620	solid. So, moving on. Revisiting these applications. Random beacons would be really
1082620	1091660	cool. When I said trustworthy time, maybe this, like, backwards thinking is sort of, like, I have
1091780	1096440	a notion of trustworthy time because I know something takes an amount of time to do. Not
1096440	1100400	that I'm getting, like, 4 o'clock and everybody has the same 4 o'clock. That is also a side effect.
1100440	1104980	But one of the things that tends to be more useful is having this, like, I want you to do something
1104980	1109900	and I want it to take time. I want a bounded delay that you can verify and has some hardware
1109900	1114180	assumptions that we all agree are good and then something good happens. So, with random beacons,
1114180	1119300	that's exactly what happens. We do this VDF thing. We have some hardware. Or maybe you
1119300	1123720	could do it in software. It just won't help you. And at the very end, you get a random number that
1123720	1128520	took you so many minutes to do and you can verify that one. It took you so many minutes to do
1128520	1133840	because they're making some hardware assumptions. You can prove that you did it. So, like, hey,
1133840	1137700	I did this. And now you have randomness. So, we can all have the same randomness. We can all have
1137700	1141580	the same values. So, if we were doing something off chain and wanted to bring that on chain,
1141580	1145360	we can now do that and show, like, hey, no funny business happening here without needing, like,
1145360	1149740	snarks or something like that, which don't really solve this problem. For Filecoin,
1149740	1155400	proofs of space time, this, like, is gigantic for us. Basically, proofs of space time are
1156440	1161420	I need to prove that I have your data on my machine and I want to continue to prove I still
1161420	1165300	have your data on your machine. And it turns out that if you don't have bounded delay,
1165300	1170260	you can do some pretty nasty cheats. If you do have bounded delay, then this problem is super
1170260	1176300	awesomely easy. And, well, asterisk, it's not easy, but it is much easier to quantify and, like,
1176300	1179680	secure and these sorts of things. So, really important for Filecoin, really important for
1179680	1184680	Ethereum because they're using random beacons. And I think the next, you know, if it's Casper
1184680	1188560	or something or one of the protocols, like, it relies on random beacons that if we can get VDFs
1188560	1196980	to work well, this just makes it so much easier. So, moving on, you know, kind of what's next,
1196980	1202580	right? Like, VDFs are new. Like, this just started in, I think, like, May or June of 2018.
1202740	1208620	And so, we've gone from, like, this is a cool theoretical thing to, like, we have implementations
1208620	1212740	of this, like, and we're well on our way to, like, ASIC design, which is pretty cool. So,
1212740	1217360	there's a lot more research. There's a lot more theory stuff. I know I kind of glossed over a lot
1217360	1222540	of this for the sake of time. The questions oftentimes we get asked quite a bit, and that's
1222540	1227360	why it's on the slide. Are they quantum resistant? No. Class groups, you can kind of make quantum
1227360	1232300	resistant, but, like, not really. You just change some parameters and you can do that.
1233140	1239920	There's probably quantum resistant VDFs. Right now, it's just research stuff. And it's a ways
1239920	1245560	away. So, I think quantum stuff is a ways away. So, sort of, like, moving ahead of that, like,
1245560	1250320	can you make this magic box? That's basically what this gets down to. Cool. Theory exists.
1250320	1255700	We can do this. I believe you. Make the box. Right? And so, the next question is, can we actually
1255700	1259480	make the box? And this is sort of, I call it the rubber meets the road bit. And that's
1260000	1263760	fundamentally what Simon has sort of done, right? And it's, like, let's make this real. Like,
1263760	1268720	let's really have hardware. Let's solve hard problems. Can I actually show you that this is
1269080	1272780	advantageous, like, versus CPU? Do you need hardware? Can you make these hardware assumptions
1272780	1276400	and actually get away with it and people don't, like, screw you over or something?
1276400	1281760	It turns out, yes, you can. And this is where Simon's part of the talk is going to pick up.
1282320	1313420	Yep. Coming up. All right. That is not working.
1324650	1329190	Okay. So, yeah, I'll talk about some of the work we've done to date. So,
1329190	1333650	what my company does is look at, we focus primarily on taking various algorithms,
1333650	1337030	computationally expensive algorithms, and speeding them up, either through software
1337030	1344010	optimizations, FPGAs, or ASICs. And so, as Brian said, this, the VDF, because it has this property
1344010	1347990	of you need to know, have a sort of a maximum or minimum time bound on how fast you can compute it
1347990	1352850	for it to actually be secure, it implies right away that you're going to need hardware. So,
1352850	1356910	you either need, it basically means you need ASICs, because the CPU is going to be much slower
1356910	1362150	than an FPGA, which will be much slower than an ASIC. And so, we started basically in February
1362150	1368010	looking at, well, how would we actually build this into hardware? And starting in February,
1368010	1371970	I mean, we looked at some of the software implementations. GMP is a pretty common
1371970	1377710	math library, and it's pretty well optimized. And if you take a sort of high-end CPU today,
1377710	1382970	to do one modular squaring of a 2K RSA number takes about 1200 nanoseconds,
1382970	1388130	which is pretty good. And it's actually a lot better than the 35-year timeline to compete
1388130	1394290	this LCS35 puzzle that Ron Rivest had estimated 20 years ago. Basically, with a CPU today,
1394290	1398570	you could do it in about three and a half years instead of 35. And I'll talk a little bit about
1398570	1402770	how that happens. And then, so we started looking at, if you're going to go to hardware,
1403470	1407630	what is the component you need? You basically need a low-latency modular squaring unit.
1407650	1411430	And you might think that hardware multipliers are well-studied, they're in every CPU in the world.
1411430	1417370	And that's true. But they basically focus today on a balance of throughput and power
1418790	1421870	optimization with latency as well. It's a balanced kind of multiplier, because it's
1421870	1427190	going to be used for general-purpose computation. What we need here is a low-latency multiplier.
1427190	1430670	That's the only thing we care about, really. As long as we can put it on a chip and the chip
1430670	1435170	doesn't melt or catch fire, nothing else matters. So we started looking at different algorithms for
1435170	1439830	that, working with my colleague Erdin Cazturk at Sabancı University in Turkey. We came up
1439830	1446130	with a super low-latency implementation and put it on an FPGA. So it took about two months
1446130	1451150	to kind of crank through that. And that runs then at about 67 nanoseconds. So
1451770	1458590	the comparison with the CPU, you can see it's much faster. 20 times faster or so.
1460470	1466150	And so we got that going. And we noticed sort of in February, March or something,
1466150	1470130	we learned about this LCS35 puzzle and decided that, hey, this is something we could actually
1470130	1474570	go tackle. It was supposed to take 35 years. It happens to use the same function we're working on.
1474570	1479730	Why not use that as a test point for our hardware? You know, it'd be kind of neat to break it early
1479730	1485930	and, you know, drive some excitement in VDFs. And so in May of this year, right, we actually
1485930	1489590	solved that puzzle. It takes two months to compute on the FPGA instead of 35 years.
1490050	1494450	And it was great. And in fact, we went to MIT at CSAIL. There was a ceremony
1494990	1501630	with Ron Rivest, the RNRSA on the far your right. And we had a good time. And this is the whole
1501630	1505450	crew. So we had one of the neat things about this project actually is it involves multiple
1505450	1509710	blockchains collaborating. So we have Filecoin and Ethereum and now Interchain Foundation is
1509710	1519430	working on it as well. And MIT, right. So that was fun. So how do we get to just two months?
1519430	1522930	And so this chart, I'm going to briefly sort of walk you through what are the things that happened.
1522930	1528050	So when Ron did his calculation for 35 years, he figured out, he estimated that it would take
1528050	1533010	79 trillion squarings. It would take 39 years. And so that was the T, the large number that
1533010	1537950	Brian talked about. And he just assumed basically Moore's law scaling with frequency going up. But
1537950	1541370	as you've noticed in the past 10 years, frequency hasn't gone up. You know, we don't have any 20
1541370	1545590	gigahertz processors. So you'd think it's slowed down, but there's a lot that happens in certain
1545590	1552570	areas of certain computations that gets fed up. So for large integer multiplication,
1553710	1558550	the move from 32 bits to 64 bits was big because we do these multiplies with a bunch of smaller
1558550	1562810	multiplies and sort of compose them. So making one that's twice as big actually is twice as fast.
1562810	1566610	So that's huge. That was a big improvement. Maybe, what was that, 10 years ago?
1567050	1571330	There were some new instructions introduced into the CPUs to make carry chains more efficient
1571330	1577070	for exactly this kind of operation about five years ago called ADCX, NATOX, and MOLEX.
1577410	1581030	And these are both in Intel and AMD processors. And that helped quite a bit.
1582050	1585210	Then you get some algorithmic improvements. You can do a number of things with algorithms. You
1585210	1589630	can use Montgomery representations. You can optimize the software, right? The number of
1589630	1593890	times you get these new instructions, new processors, they can do more issues at once.
1593990	1597110	A lot of times you're in there optimizing the superscalar pipeline to make it as fast as
1597110	1602790	possible. And that speeds it up. And so that's how the CPU kind of goes from 35 years to three
1602790	1607270	and a half years, even though Moore's law scaling didn't quite follow the anticipated trajectory.
1607970	1613550	On the FPGA, we went further. So instead of 64-bit multipliers, we have two 512-bit multipliers.
1613610	1616830	That makes a huge difference. And then we use some other sort of low latency
1617970	1620830	adder and accumulation techniques to really reduce the cycle time.
1621470	1625050	And that's how we got to two months, right? And the FPGA is dedicated to solving this one problem
1625050	1636690	fast. So where are we going in the future, right? So ultimately, we need to get to an ASIC design.
1636690	1640870	So if we take the FPGA, and so how fast is that going to be, right? What does it buy you?
1641590	1645970	In a synthesized FPGA design toward an ASIC, that's about a five nanosecond squaring. So
1645970	1652710	we've gone from 1200 nanoseconds to five in that step. If we really optimize the design for an ASIC,
1652710	1658010	we think we can get down to one in the end. On the FPGA, you're limited to the resources that
1658010	1663330	are on the chip, both the DSPs and the routing resources and whatnot. And an ASIC, you can build
1663330	1668270	exactly what you need. And you're unlimited as long as you can fit on that chip. And so that's
1668270	1672850	where you get really extract all the parallelism of that one operation and get down to one
1672850	1678850	nanosecond. And the goal is for EDFs ultimately to build this chip, probably, you know, 2021,
1678850	1683550	maybe late 2020, something like that, and have silicon available to do this function,
1683550	1687890	to put on Ethereum and Filecoin and a bunch of other blockchains that are interested.
1689070	1693510	The other interesting thing, let me see. I want to mention before we go to the demos,
1693510	1699390	this competition, we're running one now to develop new low latency squaring algorithms.
1699390	1702890	We have one that's pretty fast. How do we know it's the fastest? We don't, right? So
1703250	1706870	there is a prize out there starting with $100,000 for an FPGA competition
1707910	1712030	to build the lowest latency one. And ultimately, the idea is to run an ASIC competition too with
1712130	1717750	a $1 million prize. And hopefully that incentivizes all the people who are interested in low latency
1717750	1722870	multipliers to sort of put their designs out there. And this is in the goal of making sure
1722870	1727110	that we understand what that AMX is, so that somebody couldn't later build hardware that is
1727110	1731050	10 or 100 times faster and compromise security of the networks.
1731710	1735630	So I'll do a quick demo here if everything is going to work.
1738420	1747300	Okay, so we have this FPGA design running on AWS F1, which is their FPGA as a service platform.
1747300	1750760	So on the left, what I'm going to kick off here, I'll start on the right, which is the software
1750760	1756920	implementation in GMP. And I'm going to do 250 million squarings. It takes a couple minutes.
1757820	1765800	That's going to start. And it's going to print out every maybe 10 million iterations what the
1765800	1769140	number is. So you'll see it progress. Both of these are going to do the same thing. And on the
1769140	1778260	left, I have the FPGA in AWS F1. Doing the same problem. So it first loads the FPGA. And what
1778260	1783200	happens is it has to send the problem down to the FPGA. So there's a little bit of overhead.
1783480	1787780	And every iteration is sending the problem and going to get back. But you can see they're doing
1787780	1794160	the same thing. So each line is equivalent. And that's the sort of 50 nanoseconds for the squaring.
1794160	1799480	It's 50 nanoseconds because this is a 1K RSA number, not the 2K that we did for the timelock
1799480	1803520	puzzle. So that goes pretty fast. And I can show you here, I have one queued up for
1805520	1820700	somewhere. I guess I didn't queue it up. So we can do a billion. So this will run a billion.
1820700	1824640	It runs a little bit better on the FPGA. There's a little overhead with every time you send a
1824640	1830040	problem to the FPGA with the communications coming back and forth, which eats into the cost,
1830040	1834160	right? So if you run a billion, it's amortized a little bit better. You see 50.1 above. And
1834160	1840740	sometimes you might see a number like 50.8. Our algorithm actually is a variable depth algorithm.
1840740	1845200	Sometimes it takes mostly takes eight cycles to compute. Sometimes it's nine and sometimes it's
1845200	1850500	10, depending on the carries that happen in that round. So we try to optimize. The carries, it
1850500	1855200	turns out, in multipliers are a big cost in terms of the latency because they have to ripple through
1855840	1858480	every bit, right? So we try to optimize that by
1859940	1863000	watching where the carries are and shortcutting it where we can.
1864840	1874080	So the guy on the left should be running. Yeah, so I can mention there, the one billion finished.
1874220	1879020	And you can see the CPU is still running. So the key is, right, for this AMAX, right,
1879020	1882520	we want to make sure that that's a predictable amount.
1884420	1888500	I think in Ethereum, the security parameter for AMAX is adjustable
1889360	1895920	sort of in the protocol so that can be changed. The main thing is you can't build something like
1895920	1902040	100 or 1,000 times faster. And so if you have an ASIC that's pretty highly optimized, you want
1902040	1906460	to make sure that somebody can't spend, say, 100 times more money and get something that is 100
1906460	1910980	times faster. It's pretty hard to do. But you do need to be at the sort of leading edge of silicon
1910980	1917300	technology to ensure that. So there, the CPU one finished. It took quite a lot longer. 15 seconds
1917300	1922860	versus, you know, two and a half minutes. And that's the story. So once we have the ASIC,
1922860	1927140	if it's running at about a nanosecond, we would be able to solve the LCS, the 35-year time lock
1927140	1935600	puzzle in about one day. So that'll be a goal for next year. So what are applications? It's
1935700	1940000	a security conference. VDFs are great for blockchain. There's a couple sort of security
1940580	1943660	ones that could be interesting. And I think Brian mentioned it a little bit. But one is sort of an
1943660	1947580	unstoppable disclosure. If you have a zero day that you're going to, maybe you want to release
1947580	1951940	it in a month or X amount of time, you could wrap it in a time lock puzzle and put it out there.
1952440	1956080	And that sort of ensures that one is going to be released and then it sets the time too,
1956080	1960660	so it can't be released sooner. Another is like a denial of service prevention or spam prevention.
1960660	1965240	You can require sort of a VDF or a time lock to be solved, along with the proof that you
1965240	1969880	solved it prior to every email. That sort of imposes a little bit of work to be done
1969880	1974740	for the email that the receiver can actually verify and make sure you did the work. And so
1974740	1982160	it's a way to sort of prevent some of these things. I think that's it, except for the
1982160	1988640	competition. So this is our little flyer. If you go to vdfalliance.org, you can find out more about
1988640	1994420	VDF Alliance. And I think it's a great consortium of blockchains and also commercial partners. We
1994420	2000560	have AWS, Synopsys, Xilinx involved and it's growing. And you can participate in the contest
2000560	2005140	and I hope you guys will all do that or find friends to do that and win $100,000.
2007740	2010720	Any questions? I think we may be out of time, but...
2013020	2021080	Yeah. It was, yeah. So coincidentally, and it was quite amusing, right? So we were solving
2021080	2025920	the puzzle and projected to solve it in May. And there was a Belgian programmer who had
2025920	2031760	started two years earlier working on the same problem, sort of in secret. And we both contacted
2031760	2038120	MIT with our sort of intended solution within 24 hours of time. Completely random. We had
2038120	2042240	no knowledge of each other, right? So, but he did beat us by a couple days or a couple
2042240	2047000	weeks actually. And I think his persistence is remarkable and the fact that he was able to do
2047000	2051540	it. And he moved a couple times in the process. But anyway, it was a great event. He was there
2051540	2067200	too. He was in the picture, Bernard. And yeah, it was nice. Other questions? All right. Thank you.
