1 00:00:00,000 --> 00:00:06,740 So today we're going to talk about basically sequential time and the trustworthy notion of it, right? 2 00:00:06,740 --> 00:00:08,480 I'm Brian Vohaska. 3 00:00:08,720 --> 00:00:11,040 Full disclosure, I just left Protocol Labs. 4 00:00:11,040 --> 00:00:14,360 So I'm representing Protocol Labs and this broke again. 5 00:00:14,360 --> 00:00:14,920 All right. 6 00:00:14,920 --> 00:00:16,580 I don't know what's up. 7 00:00:16,940 --> 00:00:19,300 So it's like I'm not at Protocol Labs. 8 00:00:19,300 --> 00:00:20,780 Don't ask me Protocol Labs questions. 9 00:00:20,840 --> 00:00:22,700 This is Simon Pevers. 10 00:00:22,700 --> 00:00:23,900 He's a super national. 11 00:00:23,900 --> 00:00:27,440 They're responsible for basically all the goodness, right? 12 00:00:27,440 --> 00:00:29,840 Like the actual implementation of what we're going to talk about. 13 00:00:30,340 --> 00:00:31,700 Hey, guys. 14 00:00:32,620 --> 00:00:33,880 I know it's pretty loud. 15 00:00:34,100 --> 00:00:36,060 Do you mind talking outside? 16 00:00:38,380 --> 00:00:39,300 Thanks. 17 00:00:40,840 --> 00:00:41,440 All right. 18 00:00:41,440 --> 00:00:42,060 Cool. 19 00:00:42,580 --> 00:00:43,800 So this is Simon. 20 00:00:43,960 --> 00:00:44,860 I'm Brian. 21 00:00:45,040 --> 00:00:46,200 Let's get to it. 22 00:00:46,440 --> 00:00:46,740 All right. 23 00:00:46,800 --> 00:00:50,460 So that talk title is pretty vague. 24 00:00:50,460 --> 00:00:53,400 What is trustworthy sequential time and all that business? 25 00:00:53,400 --> 00:00:55,160 And why do we care? 26 00:00:55,160 --> 00:00:59,060 And like, should we even make it real or whatever? 27 00:00:59,320 --> 00:01:01,100 I'm a little distracted because there's cords on the floor. 28 00:01:01,100 --> 00:01:02,620 So if I trip on it, I apologize. 29 00:01:04,100 --> 00:01:11,220 Anyway, so I guess the goal is fundamentally we want some sort of verifiable and trustful time, right? 30 00:01:11,220 --> 00:01:15,080 Like I want to know that when I talk to like Derek, right? 31 00:01:15,080 --> 00:01:16,880 And I say, hey, what time do you have? 32 00:01:16,880 --> 00:01:17,840 And you say 4 p.m. 33 00:01:18,100 --> 00:01:20,680 And I say, bullshit, I don't believe you. 34 00:01:20,720 --> 00:01:21,960 Prove to me that it's 4 p.m. 35 00:01:21,960 --> 00:01:23,540 And you go and you give me some proof or something. 36 00:01:23,540 --> 00:01:24,420 That would be cool. 37 00:01:24,420 --> 00:01:25,640 Not particularly interesting. 38 00:01:25,820 --> 00:01:30,320 If I could prevent him from doing something until some sort of 4 p.m. 39 00:01:30,320 --> 00:01:32,520 And then he could prove to me that, oh, it's 4 p.m. 40 00:01:32,520 --> 00:01:33,700 And I can now do something. 41 00:01:33,700 --> 00:01:34,960 That would be much more useful. 42 00:01:34,960 --> 00:01:37,580 And we'll get into what that means and applications and sort of things. 43 00:01:38,400 --> 00:01:40,460 So why do we want this sort of thing? 44 00:01:40,460 --> 00:01:42,760 Well, I mean, come on. 45 00:01:43,680 --> 00:01:46,140 Well, I mean, synchronization, obviously, would be super awesome. 46 00:01:46,500 --> 00:01:50,240 If we could all agree on some sort of definition of time. 47 00:01:50,240 --> 00:01:51,900 We all have synchronous clocks. 48 00:01:52,580 --> 00:01:54,900 And do some interesting things at like 4 p.m. 49 00:01:54,900 --> 00:01:55,500 or something, right? 50 00:01:55,500 --> 00:01:56,880 That would be super cool. 51 00:01:57,600 --> 00:02:00,280 If we could query some service. 52 00:02:00,300 --> 00:02:02,460 I call it the Oracle of time. 53 00:02:03,300 --> 00:02:04,640 Like Oracle Delphi. 54 00:02:04,640 --> 00:02:04,880 No? 55 00:02:04,880 --> 00:02:05,480 All right. 56 00:02:05,820 --> 00:02:09,420 That would be really cool where you can't really predict whatever's coming out of here. 57 00:02:09,420 --> 00:02:11,440 You just know that at some time, you get some information out. 58 00:02:11,440 --> 00:02:13,600 You can verify that it happened at time. 59 00:02:13,700 --> 00:02:13,960 Right? 60 00:02:13,960 --> 00:02:14,360 And time... 61 00:02:16,920 --> 00:02:18,140 Sorry, guys. 62 00:02:20,420 --> 00:02:22,120 I don't know how to make that better. 63 00:02:23,200 --> 00:02:25,620 It's been doing that for everybody? 64 00:02:25,660 --> 00:02:26,300 Okay. 65 00:02:26,760 --> 00:02:27,260 All right. 66 00:02:27,260 --> 00:02:29,080 Well... It's more on than off? 67 00:02:29,080 --> 00:02:29,640 Okay. 68 00:02:29,900 --> 00:02:32,980 And then fundamentally, like presume that you could do this. 69 00:02:32,980 --> 00:02:34,740 There's some magical box or something. 70 00:02:34,860 --> 00:02:37,180 How do we actually do this? 71 00:02:38,220 --> 00:02:40,740 Well, there's a bit of math and a bit of hardware. 72 00:02:40,740 --> 00:02:44,260 And it turns out you can't really solve this problem without both of them. 73 00:02:44,740 --> 00:02:46,200 So, sort of moving on. 74 00:02:46,500 --> 00:02:48,060 What is the agenda for this talk? 75 00:02:48,060 --> 00:02:51,180 And it's basically me talking to you about mathy things. 76 00:02:51,400 --> 00:02:57,000 And then after I'm done regaling you with math, Simon actually does real stuff. 77 00:02:57,040 --> 00:02:59,320 And I think that's sort of the juicy part of the talk. 78 00:03:00,400 --> 00:03:01,700 So, right. 79 00:03:01,700 --> 00:03:05,160 So, I mentioned kind of what this trustworthy notion of time is. 80 00:03:05,160 --> 00:03:06,080 Cool story, bro. 81 00:03:06,080 --> 00:03:07,100 Why do I care? 82 00:03:07,340 --> 00:03:12,540 Well, it turns out there's some really cool things you could do if you had magic box device something. 83 00:03:12,840 --> 00:03:16,640 One of them is self-revealing commitment. 84 00:03:16,640 --> 00:03:22,260 So, suppose that I say I pinky swear to reveal some secret to you in four days. 85 00:03:22,260 --> 00:03:26,100 And maybe that's a wallet password or something. 86 00:03:26,100 --> 00:03:30,620 I pinky swear to give you this money stored in some wallet or something . 87 00:03:30,760 --> 00:03:32,160 And you say, no, that's bullshit. 88 00:03:32,660 --> 00:03:35,220 I don't believe that you're actually going to give this to me. 89 00:03:35,220 --> 00:03:51,140 So, what you can do is if you had this magical device that gave you this verifiable time component, maybe some randomness that corresponded to some sort of unlocking key, then you could say, like, here is this problem that if you solve this problem, I know it's probably going to take me four days, 90 00:03:51,140 --> 00:03:56,360 then you will get this key that is necessary to unlock this thing that you can do something useful with. 91 00:03:56,360 --> 00:03:57,940 So, self-revealing commitments. 92 00:03:58,060 --> 00:04:00,400 Random beacons are really important along this line. 93 00:04:00,400 --> 00:04:06,340 So, I want to know every 30 seconds or so, like, the value of this random beacon. 94 00:04:06,340 --> 00:04:08,100 But I don't want people to be able to fast forward. 95 00:04:08,100 --> 00:04:12,440 Because maybe they could know the random beacon information and do something nefarious. 96 00:04:12,440 --> 00:04:16,620 Turns out that's super important for Ethereum and super important for Filecoin. 97 00:04:16,940 --> 00:04:20,480 You could also do something called verifiable lotteries. 98 00:04:20,480 --> 00:04:23,620 That is also super important to Filecoin. 99 00:04:23,620 --> 00:04:26,200 Something we call secret single leader election. 100 00:04:26,300 --> 00:04:28,200 Or secret single leader election. 101 00:04:28,200 --> 00:04:29,440 There's a hyphen in there somewhere. 102 00:04:29,440 --> 00:04:31,240 It's contentious. 103 00:04:31,620 --> 00:04:37,160 Anyway, so, it turns out, like, you know, in most of these consensus mechanisms, you have a leader election. 104 00:04:38,240 --> 00:04:39,820 It's effectively a lottery. 105 00:04:39,880 --> 00:04:45,600 It would be nice if you could basically have a delay on when those leaders are elected. 106 00:04:45,780 --> 00:04:48,280 And you could know, like, one, it's verifiably random. 107 00:04:48,460 --> 00:04:50,420 And two, it could only happen every so often. 108 00:04:50,420 --> 00:04:57,200 So, you don't want people to be a leader first or know they're not going to be a leader within some sort of epsilon of time. 109 00:04:57,200 --> 00:04:58,280 That would be really cool. 110 00:04:58,600 --> 00:05:01,260 So, what does this apply to for blockchains? 111 00:05:01,260 --> 00:05:03,940 I mean, Protocol Labs cares about this. 112 00:05:03,940 --> 00:05:07,020 Ethereum has funded a lot of the research with Protocol Labs. 113 00:05:07,020 --> 00:05:10,420 So, for Protocol Labs, it's proof of space time. 114 00:05:10,480 --> 00:05:12,300 We need this bounded delay function. 115 00:05:12,300 --> 00:05:13,540 There's no way around it. 116 00:05:13,700 --> 00:05:18,760 We actually use it in expected consensus, if you're familiar with that. 117 00:05:18,800 --> 00:05:19,520 If not, look it up. 118 00:05:19,520 --> 00:05:20,300 It's pretty cool. 119 00:05:21,060 --> 00:05:23,600 So, verifiable bounded delay, really cool stuff. 120 00:05:23,820 --> 00:05:31,700 If you go back into, like, the back in the day theory for consensus mechanisms, you'll find that most BFT systems are bounded delay. 121 00:05:31,700 --> 00:05:33,220 That's an assumption they make. 122 00:05:33,220 --> 00:05:39,600 So, if you can enforce bounded delay, you get a lot of security guarantees that you don't need to make further assumptions on. 123 00:05:40,100 --> 00:05:42,660 So, why do we actually care? 124 00:05:42,660 --> 00:05:45,340 Is there an example where we'd actually ever use this in real life? 125 00:05:45,440 --> 00:05:46,700 It turns out, yeah. 126 00:05:47,140 --> 00:06:00,360 This is something that came in, I think it was, like, Serbia or something, like, a few years ago, where you can see that the balls are, you know, it's like the lottery thing where the balls come out and you know the number and pick it up and read it. 127 00:06:00,680 --> 00:06:02,120 And all the balls are filled. 128 00:06:02,220 --> 00:06:04,400 But none of the balls or a few of the balls have been drawn. 129 00:06:04,440 --> 00:06:09,820 So, you'll see, like, whoever ran this lottery knew the answer before they actually did this sort of random pull out thing. 130 00:06:09,880 --> 00:06:12,100 So, something unusual happened that's really terrible. 131 00:06:12,480 --> 00:06:14,600 I stole the side from my colleague. 132 00:06:15,180 --> 00:06:16,500 I thought it was pretty cool. 133 00:06:16,500 --> 00:06:18,040 So, this would be really terrible. 134 00:06:18,040 --> 00:06:21,100 We could prevent that with these magical, like, box function things. 135 00:06:21,900 --> 00:06:25,420 So, I said some sort of heuristics. 136 00:06:25,420 --> 00:06:27,140 Like, it would be nice two halves. 137 00:06:27,140 --> 00:06:31,140 But maybe we could formalize this a little bit more and say, what do we actually want to guarantee? 138 00:06:31,200 --> 00:06:32,460 Like, what does security mean? 139 00:06:32,460 --> 00:06:34,500 Like, cool, we have this verifiable time thing. 140 00:06:34,500 --> 00:06:36,540 What does it absolutely need to do? 141 00:06:36,900 --> 00:06:39,440 And, Mickey, maybe can we, like, formalize some of this process, right? 142 00:06:39,440 --> 00:06:43,280 And so, this work was done a few years ago. 143 00:06:43,480 --> 00:06:44,960 Actually, no, it's about a year ago. 144 00:06:44,960 --> 00:06:45,960 A year and a half. 145 00:06:46,800 --> 00:06:51,520 By some of my colleagues, Ben Fish, Dan and some others. 146 00:06:51,840 --> 00:06:57,600 And they decided to formalize a lot of this and write something called verifiable delay functions. 147 00:06:57,740 --> 00:06:58,500 And they wrote a paper on it. 148 00:06:58,500 --> 00:06:59,200 It's pretty awesome. 149 00:06:59,200 --> 00:07:00,200 Recommend reading it. 150 00:07:00,760 --> 00:07:02,900 So, there's always going to be a setup component, right? 151 00:07:03,820 --> 00:07:05,460 This is a mathy sort of thing. 152 00:07:05,460 --> 00:07:07,200 It's really helpful for security models. 153 00:07:07,200 --> 00:07:09,040 But basically, you need to set up your function. 154 00:07:09,040 --> 00:07:10,400 You need to set up your system. 155 00:07:10,520 --> 00:07:13,100 You need to take in some set of public parameters, whatever they are. 156 00:07:13,100 --> 00:07:14,120 Public keys. 157 00:07:15,440 --> 00:07:16,420 Whatever floats your boat. 158 00:07:16,420 --> 00:07:17,540 Whatever the function needs. 159 00:07:17,620 --> 00:07:19,000 And you need some security parameters. 160 00:07:19,000 --> 00:07:21,500 Security parameters are often just labeled as lambda. 161 00:07:22,100 --> 00:07:23,260 They're kind of fuzzy. 162 00:07:23,260 --> 00:07:24,640 You ever see lambda in literature? 163 00:07:24,640 --> 00:07:26,100 That's usually what it means. 164 00:07:26,360 --> 00:07:29,980 This is security parameters. 165 00:07:30,120 --> 00:07:31,400 You need an evaluation function. 166 00:07:31,400 --> 00:07:33,980 It needs to do something and it needs to output a proof. 167 00:07:34,080 --> 00:07:35,400 That's basically all this means. 168 00:07:35,540 --> 00:07:37,040 Take in some public parameters. 169 00:07:37,040 --> 00:07:38,460 Take in a seed of some kind. 170 00:07:38,640 --> 00:07:39,560 Do something. 171 00:07:39,680 --> 00:07:41,840 And then provide a proof that you did something. 172 00:07:41,840 --> 00:07:42,660 You did it correctly. 173 00:07:42,820 --> 00:07:44,300 And the last bit is verify, right? 174 00:07:44,300 --> 00:07:49,540 And that's given the proof, given the something, given the thing you claimed you did, does it work? 175 00:07:49,540 --> 00:07:50,380 True or false? 176 00:07:50,460 --> 00:07:52,680 So, it seems like that's not important. 177 00:07:52,680 --> 00:07:56,840 But it turns out it's super, duper important for any type of proving in the system. 178 00:07:57,260 --> 00:08:01,120 So, what do we actually want from this magical function? 179 00:08:01,360 --> 00:08:02,720 We need uniqueness, right? 180 00:08:02,720 --> 00:08:16,920 So, if everybody has the same magic box, and in 30 seconds, we get this, like, verifiable delay and you get, like, time out of it or you get, like, a seed out of it or you get some random bits or something, we should all have the same random bits, right? 181 00:08:16,920 --> 00:08:20,880 Like, you can't have, like, somebody having a new set of random bits. 182 00:08:20,880 --> 00:08:22,080 It's actually true, right? 183 00:08:22,080 --> 00:08:24,920 And it's like, oh, I have my magic box that isn't unique anymore. 184 00:08:25,040 --> 00:08:26,100 So, I have a different value. 185 00:08:26,100 --> 00:08:29,120 And if I can get more than one value, right, then maybe I could cheat. 186 00:08:29,120 --> 00:08:31,300 It turns out that's a huge security problem. 187 00:08:31,300 --> 00:08:32,660 So, we require uniqueness. 188 00:08:33,120 --> 00:08:35,480 The other thing is called epsilon sequentiality. 189 00:08:35,900 --> 00:08:40,000 This is a formal word, but it basically means there's no way to do this in parallel, right? 190 00:08:40,000 --> 00:08:44,380 If you had a million of these boxes running, it doesn't give you an advantage, right? 191 00:08:44,380 --> 00:08:47,240 Like, you just spend a lot of money buying a million boxes. 192 00:08:47,240 --> 00:08:48,820 So, one is plenty, right? 193 00:08:49,040 --> 00:08:52,900 So, the next thing is, okay, cool, we have these mathy theoretical things. 194 00:08:52,900 --> 00:08:54,960 What does that mean in real life? 195 00:08:55,220 --> 00:08:57,900 Can such a magical box exist? 196 00:08:57,920 --> 00:09:01,380 And it turns out, eh, kind of, right? 197 00:09:01,380 --> 00:09:04,000 And here's some assumptions that you need to make. 198 00:09:04,000 --> 00:09:13,880 And that's your ability to do this sort of magic boxy thing is usually based on something you can't touch that nobody can touch in the world, right? 199 00:09:13,880 --> 00:09:15,380 So, something in space or something. 200 00:09:15,480 --> 00:09:17,840 Or hardware assumptions, right? 201 00:09:17,840 --> 00:09:20,560 So, your ability to compute some function, right? 202 00:09:20,560 --> 00:09:22,060 And that's actually the way we go. 203 00:09:22,060 --> 00:09:24,780 We'll talk about this in maybe the next slide or so. 204 00:09:25,440 --> 00:09:27,080 I'm not gonna cover this AMAX thing. 205 00:09:27,080 --> 00:09:29,980 It's not important until we get to the hardware stuff. 206 00:09:30,580 --> 00:09:33,880 So, you might think, surely somebody has done this in the past. 207 00:09:33,920 --> 00:09:34,920 They have. 208 00:09:36,060 --> 00:09:37,680 There's some centralized approaches. 209 00:09:37,900 --> 00:09:40,020 I mean, like, signed time protocols. 210 00:09:40,020 --> 00:09:40,640 They work. 211 00:09:40,640 --> 00:09:41,380 They're great. 212 00:09:41,940 --> 00:09:45,860 In blockchain, that's not great, though, because you have usually one entity that controls all the time. 213 00:09:45,860 --> 00:09:49,260 That's really not great for us. 214 00:09:49,260 --> 00:09:50,760 So, we tend to avoid that. 215 00:09:50,760 --> 00:09:55,880 So, like, most of these things that are centralized don't quite meet the product requirements, if you will. 216 00:09:55,880 --> 00:09:58,360 They don't meet what we're looking for. 217 00:09:58,580 --> 00:10:01,360 There are some distributed approaches that work really well. 218 00:10:01,420 --> 00:10:05,760 There's multi-party computational techniques you can use. 219 00:10:05,880 --> 00:10:07,260 They're really expensive. 220 00:10:07,260 --> 00:10:09,660 Like, unbelievably computationally expensive. 221 00:10:09,760 --> 00:10:13,480 And if they're not computationally expensive, they're sort of communication expensive. 222 00:10:13,480 --> 00:10:15,660 So, coordination is really nasty. 223 00:10:16,060 --> 00:10:17,400 So, we try to avoid those. 224 00:10:17,540 --> 00:10:21,360 There's some things that use, like, computation. 225 00:10:21,360 --> 00:10:24,520 It's more or less a subset of multi-party computation. 226 00:10:24,560 --> 00:10:25,520 It's expensive. 227 00:10:26,080 --> 00:10:27,840 This cosmic events thing is kind of interesting. 228 00:10:27,840 --> 00:10:33,980 Usually whenever these functions come up, people are like, oh, just look into space, and you see, like, some event that has happened. 229 00:10:34,100 --> 00:10:35,040 And that's fantastic. 230 00:10:35,140 --> 00:10:39,040 Except, you know, like, if something happens in space, not everybody can see it. 231 00:10:39,240 --> 00:10:42,300 So, like, somebody gets an advantage, that kind of sucks. 232 00:10:42,540 --> 00:10:44,000 So, we don't do that. 233 00:10:44,160 --> 00:10:45,180 So, what do we actually do? 234 00:10:45,180 --> 00:10:48,340 And that is verifiable delay functions. 235 00:10:48,340 --> 00:10:49,100 That's the formalism. 236 00:10:49,100 --> 00:10:49,860 That's the term. 237 00:10:49,860 --> 00:10:52,200 You can look this one up, and you'll find all this stuff. 238 00:10:52,780 --> 00:10:54,080 What are VDFs? 239 00:10:54,080 --> 00:10:56,760 So, VDFs are this magic box, right? 240 00:10:56,760 --> 00:11:01,180 This is sort of how we formalize the magic box that we're gonna talk about, right? 241 00:11:01,700 --> 00:11:10,380 And, like, there was a paper with Dan and Ben in, like, 2018, where they formalized all this, and basically exactly what I told you. 242 00:11:11,080 --> 00:11:13,180 There's a sequential stepping thing. 243 00:11:13,180 --> 00:11:14,540 It computes a thing. 244 00:11:14,800 --> 00:11:17,960 We believe it takes so long to do it. 245 00:11:18,120 --> 00:11:22,080 And the output of that, that proof component, is really fast to verify. 246 00:11:22,080 --> 00:11:24,280 And that's really, really important. 247 00:11:24,280 --> 00:11:26,940 I wrote PBT, probabilistic polynomial time. 248 00:11:27,160 --> 00:11:28,000 It's a formalism. 249 00:11:28,000 --> 00:11:30,760 It's important, but you can read it as , like, it's fast. 250 00:11:31,540 --> 00:11:34,100 So, VDF notation is the same as what I showed you before. 251 00:11:34,100 --> 00:11:36,760 Probably not important for here. 252 00:11:37,000 --> 00:11:42,800 At any rate, one of the things that is really important for VDFs is this epsilon sequentiality. 253 00:11:43,500 --> 00:11:45,020 You can't parallelize it. 254 00:11:45,720 --> 00:11:46,500 It's important. 255 00:11:46,500 --> 00:11:47,020 Whatever. 256 00:11:47,620 --> 00:11:49,740 At any rate, so, how do we actually build this thing? 257 00:11:49,740 --> 00:11:51,620 And that's probably what most people are interested in. 258 00:11:51,620 --> 00:11:52,000 Cool. 259 00:11:52,000 --> 00:11:53,020 Magic box exists. 260 00:11:53,020 --> 00:11:53,880 It does cool stuff. 261 00:11:53,880 --> 00:11:54,880 How do we build it? 262 00:11:54,960 --> 00:12:02,820 It turns out that Ron Rivest, some time ago, did something similar without the efficiency component. 263 00:12:02,820 --> 00:12:06,920 And he was like, hey, I have RSA stuff. 264 00:12:06,940 --> 00:12:08,120 I have an RSA number. 265 00:12:08,240 --> 00:12:11,280 What if I just raise things to a gigantic power? 266 00:12:11,440 --> 00:12:11,660 Right? 267 00:12:11,660 --> 00:12:12,540 Like, I don't know. 268 00:12:12,540 --> 00:12:13,600 Lots of zeros and stuff. 269 00:12:13,600 --> 00:12:16,600 So, like, X to the really gigantic thing. 270 00:12:17,040 --> 00:12:19,400 How long would it take to, like, do that? 271 00:12:19,400 --> 00:12:21,860 It turns out it's really expensive. 272 00:12:21,860 --> 00:12:25,640 And so, like, you can do some clever approaches to, like, bound how expensive it would be. 273 00:12:25,640 --> 00:12:28,180 This sort of approach where you take X to the 2T. 274 00:12:28,180 --> 00:12:32,580 The 2T is basically a carryover from square. 275 00:12:32,580 --> 00:12:33,300 What is it? 276 00:12:34,780 --> 00:12:41,740 Like, a squaring trick where you can divide by 2 and you can, like, square things and square and square and square. 277 00:12:42,000 --> 00:12:44,080 And it sort of works out and makes things a little faster. 278 00:12:44,200 --> 00:12:48,260 So, 2T is the number of exponentiations you're going to make. 279 00:12:48,260 --> 00:12:49,980 2T is the exponent. 280 00:12:50,200 --> 00:12:53,380 So, he found that's really expensive to compute. 281 00:12:53,720 --> 00:13:01,500 It would be really cool if I hit something in X and then in, like, really far away somebody was able to compute this and reveal what X was. 282 00:13:01,740 --> 00:13:02,500 See? 283 00:13:02,500 --> 00:13:03,860 It's verifiable. 284 00:13:03,860 --> 00:13:08,080 At some point, you'll be able to finish this computation. 285 00:13:08,180 --> 00:13:18,400 You'll be able to figure out what X is and you'll be able to tell me and, like, I'll be really happy and we'll have a big ceremony and Simon will get invited and he'll get awards and stuff and I'll be really happy. 286 00:13:18,400 --> 00:13:19,680 That did happen, by the way. 287 00:13:20,280 --> 00:13:22,380 So, it turns out he did that. 288 00:13:22,380 --> 00:13:28,340 Problem is, that 2T is really huge in order to be, like, useful. 289 00:13:28,340 --> 00:13:32,180 And we wouldn't want people to waste, like, 35 years computing a thing. 290 00:13:32,200 --> 00:13:34,800 So, we needed something much more efficient. 291 00:13:35,020 --> 00:13:36,480 Turns out we have it. 292 00:13:36,820 --> 00:13:39,380 There's these two mathematicians. 293 00:13:39,740 --> 00:13:44,100 I think Ben Wozolowski is French and I think Piersak is Polish. 294 00:13:44,100 --> 00:13:44,760 It's not important. 295 00:13:44,760 --> 00:13:49,540 But they're really fantastically smart folks. 296 00:13:49,540 --> 00:13:52,820 And they found sort of a cheat, right? 297 00:13:52,820 --> 00:13:55,020 And it was, well, we'll just do what Ron did. 298 00:13:55,020 --> 00:13:59,660 We'll have a G to the well, G is just a group element, but this X thing to the 2T. 299 00:13:59,720 --> 00:14:01,600 Same as everybody else, we know that's hard. 300 00:14:02,300 --> 00:14:06,780 And we'll figure out how to make the proof while we do all this 2T business. 301 00:14:06,800 --> 00:14:20,820 So, maybe while we're computing this G to the 2T thing, we can do something on the side that, like, when we're done, for a little bit extra work, we can prove to somebody very efficiently that, you can do that, right? 302 00:14:20,820 --> 00:14:22,740 And here's effectively the algorithm. 303 00:14:23,340 --> 00:14:26,600 You compute the X to the 2T. 304 00:14:26,600 --> 00:14:30,560 So, this notation is a little wonky, but basically what it's saying is you have a hash function. 305 00:14:30,640 --> 00:14:32,740 This hash function isn't like a regular hash function. 306 00:14:32,820 --> 00:14:36,560 It basically says take some input and map it to inside this group. 307 00:14:36,560 --> 00:14:43,960 So, for RSA, it's like RSA2K, whatever your modulus is, hash it to less than that modulus within your group. 308 00:14:43,960 --> 00:14:45,240 So, this is fancier notation. 309 00:14:45,240 --> 00:14:46,400 But that's what it's saying. 310 00:14:46,460 --> 00:14:47,780 So, SHA2 would work here. 311 00:14:49,120 --> 00:14:49,860 Asterisks. 312 00:14:50,260 --> 00:14:51,200 There's some issues. 313 00:14:51,200 --> 00:14:52,660 But you need a hash function. 314 00:14:52,660 --> 00:14:53,140 That's the group. 315 00:14:53,140 --> 00:14:53,880 Not important. 316 00:14:54,100 --> 00:14:56,480 So, you take that. 317 00:14:56,580 --> 00:14:58,380 Then you just do the 2T, right? 318 00:14:58,380 --> 00:14:58,880 You get an answer. 319 00:14:58,880 --> 00:14:59,680 It takes forever. 320 00:14:59,800 --> 00:15:06,400 But on the side, what you're actually doing here is you sort of break down 2T into this Q times L plus R thing. 321 00:15:06,420 --> 00:15:07,920 It looks really weird, right? 322 00:15:07,920 --> 00:15:12,380 L comes from the person who is trying to get you to do work. 323 00:15:12,380 --> 00:15:18,920 So, when they say, hey, Simon, I want you to do work, I want you to compute this, like, G to the 2T thing. 324 00:15:19,420 --> 00:15:20,660 And also, by the way, here's an L. 325 00:15:20,660 --> 00:15:21,560 L is a prime. 326 00:15:21,560 --> 00:15:25,020 It's a random prime from a set of primes that you get to choose how big they are. 327 00:15:25,760 --> 00:15:30,960 Once that's done, you compute this sort of 2TQL business, right? 328 00:15:30,960 --> 00:15:37,000 And it turns out if you do some fancy algebraic stuff, that this bottom thing turns out to be correct, right? 329 00:15:37,000 --> 00:15:40,800 And so, this pi, which is this G to the Q thing, Q is pretty small. 330 00:15:40,820 --> 00:15:41,760 Or it can be pretty small. 331 00:15:41,760 --> 00:15:43,220 So, it's pretty easy for you to compute. 332 00:15:43,460 --> 00:15:47,800 Whenever you, as a verifier, like, I've said, Simon, do work. 333 00:15:48,140 --> 00:15:49,480 He gives me something back. 334 00:15:49,480 --> 00:15:51,060 I don't want to do a lot of work. 335 00:15:51,280 --> 00:15:54,400 So, I want to make sure that, like, L is small and R is small. 336 00:15:54,400 --> 00:15:56,640 It turns out if you do this, it is small. 337 00:15:56,640 --> 00:15:57,840 It's, like, small enough to do. 338 00:15:57,960 --> 00:16:00,220 And you can verify this super-duper fast. 339 00:16:00,220 --> 00:16:01,900 You get this verification thing. 340 00:16:01,900 --> 00:16:02,740 It's super awesome. 341 00:16:03,240 --> 00:16:08,320 So, the next question you might ask, like, cool, that's nice, I guess. 342 00:16:08,320 --> 00:16:09,680 Is there other ways of doing this? 343 00:16:09,680 --> 00:16:12,140 It turns out there are. 344 00:16:13,220 --> 00:16:14,780 But this is so simple. 345 00:16:14,940 --> 00:16:15,600 It's awesome. 346 00:16:15,600 --> 00:16:19,120 And you'll see why it's awesome when Simon goes into this a little bit more. 347 00:16:19,300 --> 00:16:25,900 But basically, so far in the research, and this may have changed in the last month or so, but there's two main avenues. 348 00:16:25,900 --> 00:16:29,160 RSA groups, just basically what I showed you before. 349 00:16:29,180 --> 00:16:30,840 And something called class groups. 350 00:16:31,060 --> 00:16:32,720 They're pretty complicated. 351 00:16:33,240 --> 00:16:35,040 I'm not going to talk about them at all. 352 00:16:35,200 --> 00:16:45,280 The moral of the story is you find a prime that has their properties and you build this quadratic number field and things happen. 353 00:16:47,780 --> 00:16:51,800 The advantage for having a class group is there's no trusted setup. 354 00:16:51,900 --> 00:17:02,960 So, if you know anything, maybe we don't, about VDFs, with this RSA stuff, you may have noticed, like, hey, if there's a modulus, and I happen to know the primes, I can cheat. 355 00:17:02,960 --> 00:17:06,540 So, this G to the 2T thing should be a lot easier to compute. 356 00:17:06,820 --> 00:17:07,440 And you'll be right. 357 00:17:07,700 --> 00:17:13,440 OpenSSL, whenever you go to encrypt things with RSA, it does this Chinese remainder theorem cheat. 358 00:17:13,440 --> 00:17:14,740 I know the primes. 359 00:17:14,840 --> 00:17:23,000 So, raising something to some gigantic power is much easier because I can sort of reduce the state space of these multiplications. 360 00:17:23,420 --> 00:17:30,120 So, like, you need some way of doing multi-party computation so everybody gets the same modulus without knowing the primes. 361 00:17:30,200 --> 00:17:31,520 That's really hard. 362 00:17:32,060 --> 00:17:34,160 There's some work to show like we can do that. 363 00:17:34,160 --> 00:17:37,880 I think it's now 10 minutes or something from Lero for like 1,000 people. 364 00:17:37,880 --> 00:17:39,760 So, that's probably reasonable. 365 00:17:40,080 --> 00:17:41,820 With class groups, you don't need to do that. 366 00:17:41,820 --> 00:17:43,020 So, it's really attractive. 367 00:17:43,020 --> 00:17:48,100 So, some groups like Chia, I think, are doing class group based VDFs, which is pretty cool. 368 00:17:48,440 --> 00:17:51,620 The issue with class groups is I'm not really sure if they're sequential. 369 00:17:51,760 --> 00:17:53,100 Like, we think they are. 370 00:17:53,100 --> 00:17:54,540 But, like, I'm not really sure. 371 00:17:54,540 --> 00:17:56,120 They're both really well studied, though. 372 00:17:56,740 --> 00:17:58,300 They're pretty solid. 373 00:17:58,800 --> 00:17:59,880 So, moving on. 374 00:18:00,260 --> 00:18:01,620 Revisiting these applications. 375 00:18:01,620 --> 00:18:03,280 Random beacons would be really cool. 376 00:18:04,440 --> 00:18:16,180 When I said trustworthy time, maybe this, like, backwards thinking is sort of, like, I have a notion of trustworthy time because I know something takes an amount of time to do. 377 00:18:16,240 --> 00:18:18,940 Not that I'm getting, like, 4 o'clock and everybody has the same 4 o'clock. 378 00:18:18,940 --> 00:18:20,400 That is also a side effect. 379 00:18:20,440 --> 00:18:26,800 But one of the things that tends to be more useful is having this, like, I want you to do something and I want it to take time. 380 00:18:26,800 --> 00:18:33,100 I want a bounded delay that you can verify and has some hardware assumptions that we all agree are good and then something good happens. 381 00:18:33,160 --> 00:18:35,440 So, with random beacons, that's exactly what happens. 382 00:18:35,440 --> 00:18:36,820 We do this VDF thing. 383 00:18:36,980 --> 00:18:38,180 We have some hardware. 384 00:18:38,820 --> 00:18:40,060 Or maybe you could do it in software. 385 00:18:40,060 --> 00:18:40,900 It just won't help you. 386 00:18:41,280 --> 00:18:47,240 And at the very end, you get a random number that took you so many minutes to do and you can verify that one. 387 00:18:47,240 --> 00:18:50,500 It took you so many minutes to do because they're making some hardware assumptions. 388 00:18:51,080 --> 00:18:53,220 You can prove that you did it. 389 00:18:53,220 --> 00:18:54,760 So, like, hey, I did this. 390 00:18:54,760 --> 00:18:55,640 And now you have randomness. 391 00:18:55,640 --> 00:18:57,280 So, we can all have the same randomness. 392 00:18:57,280 --> 00:18:58,640 We can all have the same values. 393 00:18:58,700 --> 00:19:08,260 So, if we were doing something off chain and wanted to bring that on chain, we can now do that and show, like, hey, no funny business happening here without needing, like, snarks or something like that, which don't really solve this problem. 394 00:19:08,640 --> 00:19:12,620 For Filecoin, proofs of space time, this, like, is gigantic for us. 395 00:19:13,540 --> 00:19:22,900 Basically, proofs of space time are I need to prove that I have your data on my machine and I want to continue to prove I still have your data on your machine. 396 00:19:23,040 --> 00:19:27,180 And it turns out that if you don't have bounded delay, you can do some pretty nasty cheats. 397 00:19:27,240 --> 00:19:31,280 If you do have bounded delay, then this problem is super awesomely easy. 398 00:19:31,580 --> 00:19:37,340 And, well, asterisk, it's not easy, but it is much easier to quantify and, like, secure and these sorts of things. 399 00:19:37,340 --> 00:19:41,760 So, really important for Filecoin, really important for Ethereum because they're using random beacons. 400 00:19:42,080 --> 00:19:51,120 And I think the next, you know, if it's Casper or something or one of the protocols, like, it relies on random beacons that if we can get VDFs to work well, this just makes it so much easier. 401 00:19:52,160 --> 00:19:57,220 So, moving on, you know, kind of what's next, right? 402 00:19:57,220 --> 00:19:58,600 Like, VDFs are new. 403 00:19:58,600 --> 00:20:02,580 Like, this just started in, I think, like, May or June of 2018. 404 00:20:02,740 --> 00:20:12,260 And so, we've gone from, like, this is a cool theoretical thing to, like, we have implementations of this, like, and we're well on our way to, like, ASIC design, which is pretty cool. 405 00:20:12,280 --> 00:20:14,440 So, there's a lot more research. 406 00:20:14,780 --> 00:20:16,180 There's a lot more theory stuff. 407 00:20:16,180 --> 00:20:18,620 I know I kind of glossed over a lot of this for the sake of time. 408 00:20:19,940 --> 00:20:23,460 The questions oftentimes we get asked quite a bit, and that's why it's on the slide. 409 00:20:23,460 --> 00:20:24,640 Are they quantum resistant? 410 00:20:24,640 --> 00:20:25,180 No. 411 00:20:25,560 --> 00:20:29,160 Class groups, you can kind of make quantum resistant, but, like, not really. 412 00:20:29,400 --> 00:20:32,300 You just change some parameters and you can do that. 413 00:20:33,140 --> 00:20:36,300 There's probably quantum resistant VDFs. 414 00:20:36,460 --> 00:20:38,260 Right now, it's just research stuff. 415 00:20:38,580 --> 00:20:40,280 And it's a ways away. 416 00:20:40,280 --> 00:20:42,040 So, I think quantum stuff is a ways away. 417 00:20:42,240 --> 00:20:47,260 So, sort of, like, moving ahead of that, like, can you make this magic box? 418 00:20:47,260 --> 00:20:48,800 That's basically what this gets down to. 419 00:20:48,800 --> 00:20:49,400 Cool. 420 00:20:49,400 --> 00:20:50,320 Theory exists. 421 00:20:50,320 --> 00:20:51,440 We can do this. 422 00:20:51,520 --> 00:20:52,520 I believe you. 423 00:20:52,640 --> 00:20:53,600 Make the box. 424 00:20:53,620 --> 00:20:53,960 Right? 425 00:20:53,960 --> 00:20:56,860 And so, the next question is, can we actually make the box? 426 00:20:56,920 --> 00:20:59,020 And this is sort of, I call it the rubber meets the road bit. 427 00:20:59,020 --> 00:21:02,080 And that's fundamentally what Simon has sort of done, right? 428 00:21:02,080 --> 00:21:03,620 And it's, like, let's make this real. 429 00:21:03,620 --> 00:21:05,100 Like, let's really have hardware. 430 00:21:05,100 --> 00:21:06,400 Let's solve hard problems. 431 00:21:06,400 --> 00:21:10,380 Can I actually show you that this is advantageous, like, versus CPU? 432 00:21:10,380 --> 00:21:11,220 Do you need hardware? 433 00:21:11,220 --> 00:21:16,400 Can you make these hardware assumptions and actually get away with it and people don't, like, screw you over or something? 434 00:21:16,400 --> 00:21:17,720 It turns out, yes, you can. 435 00:21:17,720 --> 00:21:21,760 And this is where Simon's part of the talk is going to pick up. 436 00:21:22,320 --> 00:21:22,920 Yep. 437 00:21:22,920 --> 00:21:23,800 Coming up. 438 00:21:27,720 --> 00:21:36,580 All right 439 00:21:45,240 --> 00:21:45,680 . 440 00:21:51,940 --> 00:21:53,420 That is not working. 441 00:22:04,650 --> 00:22:05,450 Okay. 442 00:22:05,970 --> 00:22:08,550 So, yeah, I'll talk about some of the work we've done to date. 443 00:22:08,550 --> 00:22:20,290 So, what my company does is look at, we focus primarily on taking various algorithms, computationally expensive algorithms, and speeding them up, either through software optimizations, FPGAs, or ASICs. 444 00:22:20,290 --> 00:22:32,110 And so, as Brian said, this, the VDF, because it has this property of you need to know, have a sort of a maximum or minimum time bound on how fast you can compute it for it to actually be secure, it implies right away that you're going to need hardware. 445 00:22:32,110 --> 00:22:39,590 So, you either need, it basically means you need ASICs, because the CPU is going to be much slower than an FPGA, which will be much slower than an ASIC. 446 00:22:39,590 --> 00:22:45,190 And so, we started basically in February looking at, well, how would we actually build this into hardware? 447 00:22:46,650 --> 00:22:50,070 And starting in February, I mean, we looked at some of the software implementations. 448 00:22:50,070 --> 00:22:54,590 GMP is a pretty common math library, and it's pretty well optimized. 449 00:22:54,590 --> 00:23:04,190 And if you take a sort of high-end CPU today, to do one modular squaring of a 2K RSA number takes about 1200 nanoseconds, which is pretty good. 450 00:23:04,190 --> 00:23:12,590 And it's actually a lot better than the 35-year timeline to compete this LCS35 puzzle that Ron Rivest had estimated 20 years ago. 451 00:23:13,090 --> 00:23:16,750 Basically, with a CPU today, you could do it in about three and a half years instead of 35. 452 00:23:17,290 --> 00:23:19,590 And I'll talk a little bit about how that happens. 453 00:23:19,590 --> 00:23:24,710 And then, so we started looking at, if you're going to go to hardware, what is the component you need? 454 00:23:24,710 --> 00:23:27,630 You basically need a low-latency modular squaring unit. 455 00:23:27,650 --> 00:23:31,430 And you might think that hardware multipliers are well-studied, they're in every CPU in the world. 456 00:23:31,430 --> 00:23:32,570 And that's true. 457 00:23:32,570 --> 00:23:40,330 But they basically focus today on a balance of throughput and power optimization with latency as well. 458 00:23:40,330 --> 00:23:44,050 It's a balanced kind of multiplier, because it's going to be used for general-purpose computation. 459 00:23:44,210 --> 00:23:47,190 What we need here is a low-latency multiplier. 460 00:23:47,190 --> 00:23:48,590 That's the only thing we care about, really. 461 00:23:48,590 --> 00:23:53,610 As long as we can put it on a chip and the chip doesn't melt or catch fire, nothing else matters. 462 00:23:53,610 --> 00:23:59,310 So we started looking at different algorithms for that, working with my colleague Erdin Cazturk at Sabancı University in Turkey. 463 00:23:59,310 --> 00:24:05,170 We came up with a super low-latency implementation and put it on an FPGA. 464 00:24:05,310 --> 00:24:07,790 So it took about two months to kind of crank through that. 465 00:24:07,890 --> 00:24:11,150 And that runs then at about 67 nanoseconds. 466 00:24:11,150 --> 00:24:15,290 So the comparison with the CPU, you can see it's much faster. 467 00:24:16,810 --> 00:24:18,590 20 times faster or so. 468 00:24:20,470 --> 00:24:22,510 And so we got that going. 469 00:24:22,510 --> 00:24:30,950 And we noticed sort of in February, March or something, we learned about this LCS35 puzzle and decided that, hey, this is something we could actually go tackle. 470 00:24:30,970 --> 00:24:32,550 It was supposed to take 35 years. 471 00:24:32,550 --> 00:24:34,570 It happens to use the same function we're working on. 472 00:24:34,570 --> 00:24:37,350 Why not use that as a test point for our hardware? 473 00:24:37,990 --> 00:24:42,790 You know, it'd be kind of neat to break it early and, you know, drive some excitement in VDFs. 474 00:24:42,790 --> 00:24:46,670 And so in May of this year, right, we actually solved that puzzle. 475 00:24:46,670 --> 00:24:49,590 It takes two months to compute on the FPGA instead of 35 years. 476 00:24:50,050 --> 00:24:51,150 And it was great. 477 00:24:51,150 --> 00:24:53,950 And in fact, we went to MIT at CSAIL. 478 00:24:53,950 --> 00:24:59,190 There was a ceremony with Ron Rivest, the RNRSA on the far your right. 479 00:25:00,110 --> 00:25:01,190 And we had a good time. 480 00:25:01,190 --> 00:25:02,090 And this is the whole crew. 481 00:25:02,090 --> 00:25:06,670 So we had one of the neat things about this project actually is it involves multiple blockchains collaborating. 482 00:25:06,670 --> 00:25:11,250 So we have Filecoin and Ethereum and now Interchain Foundation is working on it as well. 483 00:25:12,350 --> 00:25:13,550 And MIT, right. 484 00:25:13,550 --> 00:25:16,650 So that was fun. 485 00:25:16,650 --> 00:25:19,430 So how do we get to just two months? 486 00:25:19,430 --> 00:25:22,930 And so this chart, I'm going to briefly sort of walk you through what are the things that happened. 487 00:25:22,930 --> 00:25:29,670 So when Ron did his calculation for 35 years, he figured out, he estimated that it would take 79 trillion squarings. 488 00:25:29,870 --> 00:25:31,010 It would take 39 years. 489 00:25:31,010 --> 00:25:34,090 And so that was the T, the large number that Brian talked about. 490 00:25:34,710 --> 00:25:37,830 And he just assumed basically Moore's law scaling with frequency going up. 491 00:25:37,830 --> 00:25:40,610 But as you've noticed in the past 10 years, frequency hasn't gone up. 492 00:25:40,610 --> 00:25:42,490 You know, we don't have any 20 gigahertz processors. 493 00:25:42,930 --> 00:25:48,530 So you'd think it's slowed down, but there's a lot that happens in certain areas of certain computations that gets fed up. 494 00:25:48,530 --> 00:26:00,110 So for large integer multiplication, the move from 32 bits to 64 bits was big because we do these multiplies with a bunch of smaller multiplies and sort of compose them. 495 00:26:00,110 --> 00:26:02,810 So making one that's twice as big actually is twice as fast. 496 00:26:02,810 --> 00:26:03,810 So that's huge. 497 00:26:03,810 --> 00:26:04,950 That was a big improvement. 498 00:26:04,950 --> 00:26:06,610 Maybe, what was that, 10 years ago? 499 00:26:07,050 --> 00:26:17,070 There were some new instructions introduced into the CPUs to make carry chains more efficient for exactly this kind of operation about five years ago called ADCX, NATOX, and MOLEX. 500 00:26:17,410 --> 00:26:19,650 And these are both in Intel and AMD processors. 501 00:26:19,650 --> 00:26:21,030 And that helped quite a bit. 502 00:26:22,050 --> 00:26:23,770 Then you get some algorithmic improvements. 503 00:26:23,770 --> 00:26:25,190 You can do a number of things with algorithms. 504 00:26:25,190 --> 00:26:26,850 You can use Montgomery representations. 505 00:26:27,690 --> 00:26:29,310 You can optimize the software, right? 506 00:26:29,310 --> 00:26:33,890 The number of times you get these new instructions, new processors, they can do more issues at once. 507 00:26:33,990 --> 00:26:37,790 A lot of times you're in there optimizing the superscalar pipeline to make it as fast as possible. 508 00:26:38,110 --> 00:26:39,210 And that speeds it up. 509 00:26:39,610 --> 00:26:47,270 And so that's how the CPU kind of goes from 35 years to three and a half years, even though Moore's law scaling didn't quite follow the anticipated trajectory. 510 00:26:47,970 --> 00:26:50,150 On the FPGA, we went further. 511 00:26:50,150 --> 00:26:53,550 So instead of 64-bit multipliers, we have two 512-bit multipliers. 512 00:26:53,610 --> 00:26:54,830 That makes a huge difference. 513 00:26:54,830 --> 00:27:00,830 And then we use some other sort of low latency adder and accumulation techniques to really reduce the cycle time. 514 00:27:01,470 --> 00:27:02,950 And that's how we got to two months, right? 515 00:27:02,950 --> 00:27:06,050 And the FPGA is dedicated to solving this one problem fast. 516 00:27:08,050 --> 00:27:11,330 So where are we going in the future, right? 517 00:27:11,450 --> 00:27:16,690 So ultimately, we need to get to an ASIC design. 518 00:27:16,690 --> 00:27:19,710 So if we take the FPGA, and so how fast is that going to be, right? 519 00:27:19,710 --> 00:27:20,870 What does it buy you? 520 00:27:21,590 --> 00:27:25,750 In a synthesized FPGA design toward an ASIC, that's about a five nanosecond squaring. 521 00:27:25,750 --> 00:27:29,790 So we've gone from 1200 nanoseconds to five in that step. 522 00:27:29,790 --> 00:27:35,810 If we really optimize the design for an ASIC, we think we can get down to one in the end. 523 00:27:35,890 --> 00:27:42,150 On the FPGA, you're limited to the resources that are on the chip, both the DSPs and the routing resources and whatnot. 524 00:27:42,350 --> 00:27:44,510 And an ASIC, you can build exactly what you need. 525 00:27:44,870 --> 00:27:47,850 And you're unlimited as long as you can fit on that chip. 526 00:27:47,890 --> 00:27:53,410 And so that's where you get really extract all the parallelism of that one operation and get down to one nanosecond. 527 00:27:53,410 --> 00:28:07,890 And the goal is for EDFs ultimately to build this chip, probably, you know, 2021, maybe late 2020, something like that, and have silicon available to do this function, to put on Ethereum and Filecoin and a bunch of other blockchains that are interested. 528 00:28:09,070 --> 00:28:11,610 The other interesting thing, let me see. 529 00:28:11,990 --> 00:28:19,390 I want to mention before we go to the demos, this competition, we're running one now to develop new low latency squaring algorithms. 530 00:28:19,390 --> 00:28:20,850 We have one that's pretty fast. 531 00:28:20,850 --> 00:28:21,990 How do we know it's the fastest? 532 00:28:21,990 --> 00:28:22,670 We don't, right? 533 00:28:22,670 --> 00:28:29,350 So there is a prize out there starting with $100,000 for an FPGA competition to build the lowest latency one. 534 00:28:29,350 --> 00:28:33,350 And ultimately, the idea is to run an ASIC competition too with a $1 million prize. 535 00:28:33,710 --> 00:28:40,490 And hopefully that incentivizes all the people who are interested in low latency multipliers to sort of put their designs out there. 536 00:28:40,610 --> 00:28:51,050 And this is in the goal of making sure that we understand what that AMX is, so that somebody couldn't later build hardware that is 10 or 100 times faster and compromise security of the networks. 537 00:28:51,710 --> 00:28:55,630 So I'll do a quick demo here if everything is going to work. 538 00:28:58,420 --> 00:29:07,300 Okay, so we have this FPGA design running on AWS F1, which is their FPGA as a service platform. 539 00:29:07,300 --> 00:29:12,900 So on the left, what I'm going to kick off here, I'll start on the right, which is the software implementation in GMP. 540 00:29:13,520 --> 00:29:15,760 And I'm going to do 250 million squarings. 541 00:29:15,760 --> 00:29:16,920 It takes a couple minutes. 542 00:29:17,820 --> 00:29:18,900 That's going to start. 543 00:29:20,360 --> 00:29:26,240 And it's going to print out every maybe 10 million iterations what the number is. 544 00:29:26,240 --> 00:29:27,400 So you'll see it progress. 545 00:29:27,520 --> 00:29:28,880 Both of these are going to do the same thing. 546 00:29:28,880 --> 00:29:32,080 And on the left, I have the FPGA in AWS F1. 547 00:29:34,660 --> 00:29:36,020 Doing the same problem. 548 00:29:36,120 --> 00:29:37,640 So it first loads the FPGA. 549 00:29:37,920 --> 00:29:41,760 And what happens is it has to send the problem down to the FPGA. 550 00:29:41,900 --> 00:29:43,200 So there's a little bit of overhead. 551 00:29:43,480 --> 00:29:46,440 And every iteration is sending the problem and going to get back. 552 00:29:46,620 --> 00:29:48,360 But you can see they're doing the same thing. 553 00:29:48,360 --> 00:29:49,660 So each line is equivalent. 554 00:29:50,080 --> 00:29:54,160 And that's the sort of 50 nanoseconds for the squaring. 555 00:29:54,160 --> 00:30:00,080 It's 50 nanoseconds because this is a 1K RSA number, not the 2K that we did for the timelock puzzle. 556 00:30:00,620 --> 00:30:01,620 So that goes pretty fast. 557 00:30:01,620 --> 00:30:06,240 And I can show you here, I have one queued up for somewhere. 558 00:30:07,320 --> 00:30:08,960 I guess I didn't queue it up. 559 00:30:10,160 --> 00:30:13,840 So we can do a billion. 560 00:30:19,400 --> 00:30:20,700 So this will run a billion. 561 00:30:20,700 --> 00:30:22,820 It runs a little bit better on the FPGA. 562 00:30:22,880 --> 00:30:30,220 There's a little overhead with every time you send a problem to the FPGA with the communications coming back and forth, which eats into the cost, right? 563 00:30:30,220 --> 00:30:32,360 So if you run a billion, it's amortized a little bit better. 564 00:30:32,360 --> 00:30:34,040 You see 50.1 above. 565 00:30:34,040 --> 00:30:36,600 And sometimes you might see a number like 50.8. 566 00:30:37,280 --> 00:30:40,740 Our algorithm actually is a variable depth algorithm. 567 00:30:40,740 --> 00:30:43,600 Sometimes it takes mostly takes eight cycles to compute. 568 00:30:43,820 --> 00:30:48,280 Sometimes it's nine and sometimes it's 10, depending on the carries that happen in that round. 569 00:30:48,540 --> 00:30:49,720 So we try to optimize. 570 00:30:49,720 --> 00:30:56,940 The carries, it turns out, in multipliers are a big cost in terms of the latency because they have to ripple through every bit, right? 571 00:30:56,940 --> 00:31:03,000 So we try to optimize that by watching where the carries are and shortcutting it where we can. 572 00:31:04,840 --> 00:31:06,900 So the guy on the left should be running. 573 00:31:11,360 --> 00:31:14,080 Yeah, so I can mention there, the one billion finished. 574 00:31:14,220 --> 00:31:16,620 And you can see the CPU is still running. 575 00:31:16,940 --> 00:31:22,520 So the key is, right, for this AMAX, right, we want to make sure that that's a predictable amount. 576 00:31:24,420 --> 00:31:32,300 I think in Ethereum, the security parameter for AMAX is adjustable sort of in the protocol so that can be changed. 577 00:31:32,580 --> 00:31:37,700 The main thing is you can't build something like 100 or 1,000 times faster. 578 00:31:38,960 --> 00:31:47,160 And so if you have an ASIC that's pretty highly optimized, you want to make sure that somebody can't spend, say, 100 times more money and get something that is 100 times faster. 579 00:31:47,160 --> 00:31:48,220 It's pretty hard to do. 580 00:31:48,460 --> 00:31:52,620 But you do need to be at the sort of leading edge of silicon technology to ensure that. 581 00:31:53,120 --> 00:31:54,600 So there, the CPU one finished. 582 00:31:54,600 --> 00:31:55,820 It took quite a lot longer. 583 00:31:56,560 --> 00:31:59,080 15 seconds versus, you know, two and a half minutes. 584 00:31:59,600 --> 00:32:00,440 And that's the story. 585 00:32:00,440 --> 00:32:08,560 So once we have the ASIC, if it's running at about a nanosecond, we would be able to solve the LCS, the 35-year time lock puzzle in about one day. 586 00:32:10,600 --> 00:32:12,380 So that'll be a goal for next year. 587 00:32:14,220 --> 00:32:15,480 So what are applications? 588 00:32:15,480 --> 00:32:16,760 It's a security conference. 589 00:32:17,240 --> 00:32:18,560 VDFs are great for blockchain. 590 00:32:18,720 --> 00:32:21,640 There's a couple sort of security ones that could be interesting. 591 00:32:21,640 --> 00:32:22,960 And I think Brian mentioned it a little bit. 592 00:32:22,960 --> 00:32:24,900 But one is sort of an unstoppable disclosure. 593 00:32:25,040 --> 00:32:31,940 If you have a zero day that you're going to, maybe you want to release it in a month or X amount of time, you could wrap it in a time lock puzzle and put it out there. 594 00:32:32,440 --> 00:32:37,360 And that sort of ensures that one is going to be released and then it sets the time too, so it can't be released sooner. 595 00:32:37,860 --> 00:32:40,660 Another is like a denial of service prevention or spam prevention. 596 00:32:40,660 --> 00:32:47,000 You can require sort of a VDF or a time lock to be solved, along with the proof that you solved it prior to every email. 597 00:32:47,360 --> 00:32:54,520 That sort of imposes a little bit of work to be done for the email that the receiver can actually verify and make sure you did the work. 598 00:32:54,520 --> 00:32:58,080 And so it's a way to sort of prevent some of these things. 599 00:32:59,360 --> 00:33:02,780 I think that's it, except for the competition. 600 00:33:02,780 --> 00:33:04,500 So this is our little flyer. 601 00:33:04,560 --> 00:33:09,740 If you go to vdfalliance.org, you can find out more about VDF Alliance. 602 00:33:09,960 --> 00:33:14,420 And I think it's a great consortium of blockchains and also commercial partners. 603 00:33:14,420 --> 00:33:18,180 We have AWS, Synopsys, Xilinx involved and it's growing. 604 00:33:18,660 --> 00:33:25,140 And you can participate in the contest and I hope you guys will all do that or find friends to do that and win $100,000. 605 00:33:27,740 --> 00:33:28,940 Any questions? 606 00:33:28,940 --> 00:33:30,720 I think we may be out of time, but... 607 00:33:33,020 --> 00:33:33,600 Yeah. 608 00:33:37,060 --> 00:33:38,000 It was, yeah. 609 00:33:38,000 --> 00:33:40,440 So coincidentally, and it was quite amusing, right? 610 00:33:40,440 --> 00:33:43,940 So we were solving the puzzle and projected to solve it in May. 611 00:33:44,000 --> 00:33:49,760 And there was a Belgian programmer who had started two years earlier working on the same problem, sort of in secret. 612 00:33:49,760 --> 00:33:57,220 And we both contacted MIT with our sort of intended solution within 24 hours of time. 613 00:33:57,220 --> 00:33:57,880 Completely random. 614 00:33:57,880 --> 00:33:59,740 We had no knowledge of each other, right? 615 00:33:59,740 --> 00:34:03,160 So, but he did beat us by a couple days or a couple weeks actually. 616 00:34:03,900 --> 00:34:07,240 And I think his persistence is remarkable and the fact that he was able to do it. 617 00:34:07,240 --> 00:34:09,320 And he moved a couple times in the process. 618 00:34:09,980 --> 00:34:11,140 But anyway, it was a great event. 619 00:34:11,140 --> 00:34:11,920 He was there too. 620 00:34:11,920 --> 00:34:14,000 He was in the picture, Bernard. 621 00:34:14,260 --> 00:34:15,940 And yeah, it was nice. 622 00:34:20,040 --> 00:34:21,100 Other questions? 623 00:34:25,660 --> 00:34:26,400 All right. 624 00:34:26,400 --> 00:34:27,200 Thank you.