1 00:00:00,000 --> 00:00:01,340 Good morning, everyone. 2 00:00:01,340 --> 00:00:03,200 Thank you for joining us today. 3 00:00:03,200 --> 00:00:06,120 I have the pleasure of introducing Elaine Shee. 4 00:00:06,120 --> 00:00:09,260 She is a professor in Carnegie Mellon University. 5 00:00:09,260 --> 00:00:18,580 Her research interests include cryptography, security, mechanism design, algorithms, foundations of blockchains, and programming languages. 6 00:00:18,580 --> 00:00:21,780 She is a co-founder of Oblivious Labs, Inc. 7 00:00:21,780 --> 00:00:29,540 Her research on oblivious RAM and differentially private algorithms have been adopted by Signal, Meta, and Google. 8 00:00:29,540 --> 00:00:36,020 She is a Packard Fellow, a Sloan Fellow, an ACM Fellow, and an IACR Fellow. 9 00:00:36,020 --> 00:00:43,040 Without further ado, Elaine Shee, presenting Oblivious RAM, From Theory to Large-Scale Deployment. 10 00:00:43,380 --> 00:00:46,820 Thank you so much, Chelsea, for the introduction. 11 00:00:46,820 --> 00:00:50,780 I'm very excited to be here, and I love my hacker badge. 12 00:00:51,100 --> 00:01:01,240 Okay, I'll talk about Oblivious RAM, or O-RAM for short, and the exciting story of how it evolved from theory to large-scale real-world deployment. 13 00:01:02,540 --> 00:01:17,900 So I'll begin with the Signal story and some other motivating applications in blockchains, and then I will tell you how to construct a simple O-RAM algorithm, and then at the end I will maybe mention a bit more about applications in the blockchain space, 14 00:01:17,900 --> 00:01:22,940 as well as the technical roadmap going forward. 15 00:01:24,840 --> 00:01:33,760 Okay, so Signal has contact discovery, and they want to guarantee privacy for the users. 16 00:01:34,000 --> 00:01:43,800 So essentially, in contact discovery, the user will upload its address book to the server, and the server will return the entries corresponding to his friends. 17 00:01:45,000 --> 00:01:50,880 But obviously for Vitalik, his address book is top secret, so he is reluctant to disclose it to the server. 18 00:01:50,880 --> 00:01:53,580 So how can we protect the user's privacy? 19 00:01:53,840 --> 00:01:58,560 A naive solution is to use encryption, like an encrypted database. 20 00:01:58,560 --> 00:02:08,240 So imagine the server is equipped with TE, Trusted Execution Environment, also called the secure processor. 21 00:02:08,340 --> 00:02:12,900 So you can think of the secure processor as a hardware sandbox. 22 00:02:12,920 --> 00:02:19,360 Everything is always encrypted, and only inside the sandbox can things get decrypted. 23 00:02:19,360 --> 00:02:33,000 There is a decryption key inside the sandbox, so you can decrypt the data and do competition inside the sandbox, but any data that leaves the enclave, and the sandbox is also called an enclave, anything that leaves the enclave, either in transit or in storage, 24 00:02:33,000 --> 00:02:34,400 will always be encrypted. 25 00:02:35,280 --> 00:02:51,720 So you may think that this will solve the privacy problem, but as you sit down and think about it a little bit longer, actually encryption alone doesn't do very much to protect the user's privacy, and this is because when the enclave needs to do the computation, 26 00:02:51,720 --> 00:03:05,940 it needs to go to the database that resides in memory and on disk, and it needs to fetch those records corresponding to the friend, and which locations are being accessed will disclose exactly who your friends are. 27 00:03:07,460 --> 00:03:17,440 So this access pattern leakage is not just relevant for signal, it's actually a pretty general problem. 28 00:03:17,820 --> 00:03:34,600 It manifests in many different ways, like for instance, this is a binary search program, you don't have to stare at the code, but essentially what happens in binary search is that you will first look at the middle element of the array, and then depending on the result of the comparison, 29 00:03:34,600 --> 00:03:38,300 you either recurse on the left half or the right half. 30 00:03:38,300 --> 00:03:47,180 And now if you think about it, if you like observe the sequence of accesses, you can actually determine whether you are searching for a large value or a small value. 31 00:03:48,960 --> 00:04:04,200 And more generally, if your program contains control branches dependent on secret variable, let's say you are conditioning on the last bit of your secret key, and then depending on whether it's 0 or 1, the two branches exhibit different memory traces, 32 00:04:04,200 --> 00:04:11,080 then by observing what data is being accessed in memory, you can actually learn the last bit of the secret key. 33 00:04:13,580 --> 00:04:31,900 So this is an actual attack shown by researchers in UT Austin and Microsoft Research, and they showed that if you are running off-the-shelf image processing software inside PE, and you can only observe the page-level access patterns, and these are like car screen access patterns. 34 00:04:31,900 --> 00:04:37,720 And even such car screen access patterns can allow you to recover the shape and the location of the objects. 35 00:04:39,280 --> 00:04:47,020 Okay, so the question we want to answer is can we provably defeat such access pattern leakage, but we still want to preserve the efficiency of the program. 36 00:04:47,980 --> 00:04:51,120 So let me tell you a signal story again, right? 37 00:04:51,120 --> 00:05:03,660 So there is actually a naive solution to solving this problem, which is every time I need to query the database for something, I'm going to make a linear scan over the whole database, and of course a linear scan will hide which location I'm interested in. 38 00:05:03,660 --> 00:05:07,400 But the drawback of this approach is like obviously it is very expensive. 39 00:05:08,480 --> 00:05:11,240 So Signal actually did an optimized linear scan. 40 00:05:11,240 --> 00:05:18,000 They were like basically for a batch of queries, they make a single linear scan, and even so the overhead is linear. 41 00:05:18,000 --> 00:05:22,160 It's n over beta, where n is the database size and beta is the batch size. 42 00:05:22,220 --> 00:05:27,980 And back then when they deployed the linear scan solution, they needed 500 servers, which was a lot. 43 00:05:28,460 --> 00:05:36,220 And eventually they came around and they realized that the right thing to do is to use an ORAM algorithm. 44 00:05:36,220 --> 00:05:43,420 So specifically they implemented an ORAM scheme called PathORAM, which was proposed in our prior work in 2013. 45 00:05:43,820 --> 00:05:53,800 And once they deployed the scheme, they were down to six servers, so almost 100x saving in operational costs. 46 00:05:54,060 --> 00:06:07,320 And then asymptotically, PathORAM achieves log squared n overhead, but actually in practice one of the log has a large base, so really in practice you just observe log n overhead. 47 00:06:08,800 --> 00:06:13,340 And there are many other applications of ORAM besides Signal. 48 00:06:13,340 --> 00:06:20,120 For instance, we are working with Ethereum Foundation to build ORAM into their infrastructure. 49 00:06:20,120 --> 00:06:34,460 Because Ethereum wants to enable private blockchain reads, they want to basically be able to provide RPC and four nodes, which allow users to privately access the public data that live on the blockchain. 50 00:06:34,880 --> 00:06:38,480 Meta has an implementation of our PathORAM as well. 51 00:06:38,780 --> 00:06:43,720 We actually don't know exactly what application they're using it for, but likely it's private AI. 52 00:06:44,800 --> 00:06:52,080 Flashbots is interested in using ORAM to enable private block building, and we are also collaborating with them. 53 00:06:52,600 --> 00:07:05,720 And it is hard these days to give a talk without mentioning LLM, so something that would also be nice to have is to have private LLM, like imagine you can query chatGPT without disclosing your intentions and your query. 54 00:07:05,720 --> 00:07:08,140 So this is also something that ORAM can enable. 55 00:07:08,360 --> 00:07:13,740 And I also want to mention in many of these applications, traditional databases completely fail. 56 00:07:13,780 --> 00:07:20,120 And the reason is because traditional databases only do encryption, they only encrypt the data contents. 57 00:07:20,120 --> 00:07:26,220 But for a lot of these application scenarios, like in Ethereum's case, the database itself is public. 58 00:07:26,260 --> 00:07:29,760 It is precisely the queries you want to hide, not the database itself. 59 00:07:29,760 --> 00:07:34,700 And in other scenarios, like in Signal's case, the database is not public, but it is known to Signal. 60 00:07:34,700 --> 00:07:40,580 So they don't actually, they're not worried about hiding the database, but they just don't want to see the user's address book. 61 00:07:40,900 --> 00:07:45,940 So in these cases, really what you need is ORAM rather than traditional encrypted database. 62 00:07:47,140 --> 00:07:55,080 Okay, so I hope this has got you excited about ORAM, so let's actually see how to construct ORAM. 63 00:07:55,080 --> 00:08:03,980 So in fact, ORAM is an extremely simple data structure, and I hope this talk can convince you it is simple, and this is also the reason why it is so fast. 64 00:08:06,060 --> 00:08:07,220 So what is ORAM? 65 00:08:07,220 --> 00:08:11,740 It was first proposed by Goldrich and Ostrowski back in the 1980s. 66 00:08:11,740 --> 00:08:17,800 It's an algorithmic technique that allows you to kind of quote-unquote encrypt access patterns. 67 00:08:18,200 --> 00:08:22,580 I mean, of course, it's not really encryption because access patterns are a side effect of program execution. 68 00:08:22,580 --> 00:08:24,620 It is not like a data stream. 69 00:08:24,760 --> 00:08:31,180 So behind the scene, what you are really doing is like you are shuffling and permuting the data in memory as you access the data. 70 00:08:31,180 --> 00:08:33,140 So we'll see how it works. 71 00:08:33,860 --> 00:08:54,160 If you want to think of ORAM as a box, as abstraction, essentially it will receive requests in the form of read some logical address or write to some logical address, and it will translate these logical requests into some physical accesses, and each logical request will be translated into potentially multiple physical accesses. 72 00:08:55,100 --> 00:09:03,060 And the ratio of the physical accesses over the logical accesses is essentially the overhead of the ORAM. 73 00:09:03,480 --> 00:09:11,120 And the security requires that no matter what your logical request is, the observed physical access patterns must be identically distributed. 74 00:09:13,100 --> 00:09:24,280 Okay, and then when we deploy ORAM, let's say in a secure enclave or TEE, essentially the ORAM is a client that runs inside this trusted boundary. 75 00:09:24,280 --> 00:09:26,600 It is part of your trusted computing base. 76 00:09:29,840 --> 00:09:38,440 So let me first give you the bigger picture of where we are in terms of the theoretical landscape, and then I can tell you about the construction. 77 00:09:38,460 --> 00:09:46,800 So even back in 1987, Goldreich-Ostrofsky already showed a non-trivial construction with log-cubed overhead. 78 00:09:46,800 --> 00:09:49,620 So this is already much better than linear scan, right? 79 00:09:49,620 --> 00:09:53,880 But their scheme is very complex, and it has large constants, and it's completely impractical. 80 00:09:53,880 --> 00:09:57,320 So you wouldn't want to actually implement these log-cubed schemes. 81 00:09:57,440 --> 00:10:02,480 And they also proved that if you want an ORAM, log-end overhead is necessary. 82 00:10:02,480 --> 00:10:05,060 So this is like a lower bound on the performance. 83 00:10:05,620 --> 00:10:16,480 So really what is interesting is like on the practical side, we want to have an ORAM scheme that is practical, not like the one by Goldreich-Ostrofsky. 84 00:10:16,480 --> 00:10:23,380 And on the theoretical side, we want to understand whether we can bridge the gap between the upper bound and the lower bound. 85 00:10:23,940 --> 00:10:42,040 So this is the research we have been doing since around 2010, and we were able to answer both questions affirmatively, and we are able to construct a practical scheme which is now deployed in the real world at large scale, and we were also able to bridge this gap between the upper and lower bound. 86 00:10:42,040 --> 00:10:44,800 These two, unfortunately, they're not the same scheme. 87 00:10:45,380 --> 00:10:49,240 So today I will want to focus on the practical scheme. 88 00:10:50,680 --> 00:10:53,480 Okay, so I will tell you how to construct an ORAM. 89 00:10:56,280 --> 00:11:00,800 Before I tell you the idea, I want to just quickly brainstorm together. 90 00:11:00,800 --> 00:11:06,580 So a strongman solution is to just take all your data blocks and permute them in memory. 91 00:11:06,580 --> 00:11:11,220 So suppose the adversary doesn't know the permutation. 92 00:11:11,220 --> 00:11:14,560 So essentially every block is stored at a random location. 93 00:11:14,660 --> 00:11:20,740 In this case, if you want to access logical address 9, you would just go to a random location. 94 00:11:20,920 --> 00:11:26,180 So it seems like this already gives you some security, but it is not highly secure. 95 00:11:26,180 --> 00:11:30,740 It is not really secure if you need to access each block multiple times. 96 00:11:30,740 --> 00:11:38,680 For instance, if I access the same block 9 twice, then it leaks frequency and linkability. 97 00:11:38,680 --> 00:11:47,620 So you can actually launch statistical attacks to infer which location is storing what data. 98 00:11:47,940 --> 00:11:53,280 And the reason why this strongman is not secure is the same reason why deterministic encryption is not secure. 99 00:11:53,280 --> 00:11:55,600 It leaks statistical information. 100 00:11:56,280 --> 00:12:03,380 So really, the moral of the story is that the blocks have to keep moving around in memory. 101 00:12:03,380 --> 00:12:10,880 Because if they always stay in the same place, then any time I access the same block multiple times, it will leak statistical information. 102 00:12:11,160 --> 00:12:16,200 So this is the key insight I want you to keep in mind as I tell you what the solution looks like. 103 00:12:17,800 --> 00:12:19,400 Okay, so here's the solution. 104 00:12:19,400 --> 00:12:21,500 So ORAM is just a very simple data structure. 105 00:12:21,500 --> 00:12:22,760 It's a binary tree. 106 00:12:23,040 --> 00:12:32,120 In fact, actually, ORAM is even simpler to teach than the typical data structures we teach to our undergrad students, like red-black tree. 107 00:12:32,540 --> 00:12:36,600 For instance, it doesn't have complex balancing operations. 108 00:12:37,260 --> 00:12:40,760 Every node in the tree is called a bucket. 109 00:12:41,620 --> 00:12:43,920 And the bucket has a finite capacity. 110 00:12:43,920 --> 00:12:46,180 It can store, let's say, a constant number of blocks. 111 00:12:47,660 --> 00:12:49,920 And some blocks are real blocks. 112 00:12:49,920 --> 00:12:51,900 Real blocks are encryption of actual data. 113 00:12:51,900 --> 00:12:53,280 And some blocks are filler blocks. 114 00:12:53,280 --> 00:12:55,220 And filler blocks are just encryption of zero. 115 00:12:55,220 --> 00:12:56,720 And they're only there for security. 116 00:12:56,720 --> 00:12:58,520 They don't encode any useful data. 117 00:13:00,800 --> 00:13:06,920 Okay, so the most important invariant in ORAM is that every block is assigned to a random path in the tree. 118 00:13:07,340 --> 00:13:11,300 So a path is like, you know, a path from the root to some leaf node. 119 00:13:11,320 --> 00:13:18,820 So in this case, imagine the block at logical address x is stored on the blue path. 120 00:13:19,980 --> 00:13:26,660 And in the beginning, I'm going to cheat a little bit and imagine the CPU can store a position map that records where every block is. 121 00:13:26,660 --> 00:13:32,520 But in the end, I will get rid of the position map because this position map is very large and you cannot store it inside the CPU's cache. 122 00:13:33,020 --> 00:13:41,360 Okay, so reading a block is very simple because I just have to find out where the block is, which path it is on, and all I have to do is read this path. 123 00:13:41,500 --> 00:13:48,120 And then when I read this path, I can remove the block I want from the path and hold it in my hand and hold it in the CPU's cache. 124 00:13:49,380 --> 00:13:53,720 And at this moment, you know, we are going to revisit that key inside type machine. 125 00:13:53,820 --> 00:13:58,160 It is important that as soon as we read the block, we need to relocate it. 126 00:13:58,160 --> 00:14:04,740 Because if we don't relocate it, the next time if we want to read the same thing, we'll go back to the same path and that leaks statistical information. 127 00:14:05,260 --> 00:14:07,180 So how do we relocate this block? 128 00:14:07,240 --> 00:14:12,420 The most natural idea is to assign it to a random new path. 129 00:14:12,420 --> 00:14:14,280 So I'm going to sample a path at random. 130 00:14:14,280 --> 00:14:16,280 Say I happen to pick the green path. 131 00:14:16,560 --> 00:14:19,420 And how do I relocate the block X to the green path? 132 00:14:19,860 --> 00:14:27,340 The idea is, where on the green path can I write the block X? 133 00:14:28,720 --> 00:14:30,580 Can I write it to the leaf? 134 00:14:34,160 --> 00:14:44,120 So the answer actually should be no, because if you disclose which path it is, then the adversary knows you have relocated something from the blue path to the green path. 135 00:14:44,120 --> 00:14:49,560 And the next time if you access the same thing, you'll go to the green path and this still leaks statistical information. 136 00:14:50,140 --> 00:14:58,920 So really you also cannot write this block to any of the internal nodes, because these internal nodes leak partial information about the choice of the new path. 137 00:14:58,920 --> 00:15:06,160 So really you have to write the block back without leaking what is the choice of the new path. 138 00:15:06,160 --> 00:15:09,240 And the only way to do that is if you write it back into the root. 139 00:15:09,240 --> 00:15:16,440 The root is on every path, so if you write it into the root, it satisfies the path invariant without disclosing which path I've chosen. 140 00:15:17,940 --> 00:15:31,320 Okay, so I mean of course you cannot keep writing things into the root, that'll create a problem because the root will soon overflow, and how do we resolve... okay, so before I tell you how to resolve this overflow problem, essentially if you do this, 141 00:15:31,320 --> 00:15:38,240 the security of the scheme is very easy to see, because anytime I want to make a request, I will just end up visiting a random path. 142 00:15:38,240 --> 00:15:46,800 And importantly, the choice of the path has not been revealed before, because every time I relocate the block, I write it back to the root without disclosing the choice of the new path. 143 00:15:48,780 --> 00:15:53,440 Okay, so now let's try to resolve the problem I've mentioned. 144 00:15:53,440 --> 00:16:00,440 So because I cannot keep writing things into the root, the root will soon overflow, and I have to overcome this problem. 145 00:16:01,340 --> 00:16:03,820 And in fact, there are actually two issues remaining. 146 00:16:03,820 --> 00:16:17,640 One is how do we resolve overflow, the second is, remember I said I'm cheating, I'm assuming the CPU actually starts the position map that records where every block is, but we cannot do that because the position map is too large. 147 00:16:17,640 --> 00:16:22,140 So I'll tell you how to resolve these two remaining issues, and we will get a full ORM scheme. 148 00:16:22,420 --> 00:16:37,480 So to resolve the overflow issue, we are going to introduce an eviction process, and the goal of the eviction, it's a maintenance process that tries to move things closer to the leaf, and if you do it in a clever way, you can prove that except with negligible probability, 149 00:16:37,480 --> 00:16:39,360 no bucket will ever overflow. 150 00:16:39,520 --> 00:16:56,520 And in fact, in path ORM, the way the eviction scheme works is every time I read something from a path, I use, because I'm touching this path anyway, I'm going to use this opportunity to repack all the blocks on that path and pack them as close to the leaf as possible while subject to the path invariant. 151 00:16:57,020 --> 00:17:05,160 So in path ORM, eviction and read are kind of like they take place on a single path, and this is why the scheme is called path ORM. 152 00:17:05,160 --> 00:17:11,720 It's because every time I need to make a request, I just have to visit a random path in the tree. 153 00:17:12,160 --> 00:17:13,240 Okay, so that is eviction. 154 00:17:13,240 --> 00:17:24,480 I will not go into detail, but actually in the afternoon, I'm going to give a longer version of the talk, and I will go into the detail of the eviction in the longer talk. 155 00:17:24,780 --> 00:17:28,580 So let me also mention how to remove the position map, and the answer is just one word. 156 00:17:28,580 --> 00:17:29,920 It's recursion. 157 00:17:30,000 --> 00:17:47,860 Essentially, you have this position map, you cannot start it in the CPU cache, you are going to recurse and start it in a smaller ORM tree, and once you recurse logarithmically many times, your position map will be constant size, and at that time, you can start it in the CPU's cache or registers. 158 00:17:48,840 --> 00:17:56,640 So essentially, every time you recurse, the size of the position map is at least constant factor smaller than the original data set. 159 00:17:57,200 --> 00:18:03,400 Okay, so this is the whole algorithm, and it's really simple. 160 00:18:03,400 --> 00:18:09,280 It's just 16 lines of pseudocode, and even counting lines like and if and for. 161 00:18:10,820 --> 00:18:26,660 It's so simple you can print it on a t-shirt, and in fact, I guess the biggest debate in the ORM community is not whether the ORM scheme is simple enough or fast enough for practical purposes, it's more whether the tree is upside down or not. 162 00:18:26,660 --> 00:18:31,640 That is the most debated topic in the ORM community. 163 00:18:33,200 --> 00:18:37,920 Okay, so just to summarize, how do we construct an ORM? 164 00:18:37,920 --> 00:18:54,180 It's a tree-based data structure, and the key insights are, a block is always remapped to a new random path whenever it is read, and then you must relocate the block to the new path without revealing the choice of the new path, and this is important for security. 165 00:18:54,260 --> 00:19:04,020 And in order to make sure the buckets don't overflow, we have to have a clever eviction process that tries to keep moving things closer to the leaf. 166 00:19:04,360 --> 00:19:15,600 And then the main work, like even though the scheme is simple, I want to say actually the proof of security, the stochastic proof that there is no overflow, that is a rather complex and mathematical proof. 167 00:19:16,440 --> 00:19:37,640 Okay, so performance, and we actually, so this is the performance we measure using our own implementation by Oblivious Labs, and we are using an Ethereum or SignalScale data set ranging from 100 gigabyte to one terabyte, and this is performance just on a single desktop machine. 168 00:19:37,640 --> 00:19:42,600 Every request, every key value lookup is only 20 to 50 microseconds. 169 00:19:42,600 --> 00:19:48,520 It's not even millisecond, we are talking about microsecond level delay, right, so there's almost no delay essentially. 170 00:19:48,680 --> 00:20:04,220 And then the throughput is very high even on a single node, it can be up to 200k queries per second, and it's also easy for ORAM, it's actually very easy to do horizontal scaling by adding more machines, you can scale up the throughput proportionally to the number of machines. 171 00:20:05,260 --> 00:20:25,800 Our implementation outperforms Signal by roughly an order of magnitude, we outperform Meta by about 100x, and there is also this ObliX is a state-of-the-art academic implementation, and we outperform ObliX by like 600x, so I think this is probably the fastest implementation known to date. 172 00:20:26,380 --> 00:20:33,560 And I want to conclude with some more applications in the blockchain space, and some of the ongoing work. 173 00:20:34,100 --> 00:20:36,000 So when do you need an ORAM? 174 00:20:36,000 --> 00:20:47,380 I guess like previously, so what's interesting is like previously, you know, people are using TE a lot, but maybe they didn't realize that they need an ORAM. 175 00:20:47,380 --> 00:21:00,300 But in fact, whenever you need trusted hardware, you should actually think whether actually ORAM is needed, because for a lot of computation tasks, they don't just linearly scan through memory, they are going to make dynamic memory accesses, and in these cases, 176 00:21:00,300 --> 00:21:04,760 chances are the memory accesses are leaky, and you would need ORAM. 177 00:21:04,760 --> 00:21:06,960 And also, ORAM is not just for TE. 178 00:21:06,960 --> 00:21:20,740 Actually, if you want to have secure computation, like let's say TE is replaced with a cryptographic secure computer enabled by multiparty computation, the same problem happens, and you need ORAM to make the accesses secure as well. 179 00:21:21,920 --> 00:21:24,540 Okay, so what are some of the applications for blockchains? 180 00:21:24,540 --> 00:21:30,440 I already quickly mentioned them at the beginning of the talk, but maybe I can't go into detail for like one of them. 181 00:21:30,440 --> 00:21:37,080 Let's look at Flashbots application private order flow, and I'll explain why it's important. 182 00:21:37,700 --> 00:21:48,580 So in blockchain, users submit transactions to the block builder, and the block builder will build blocks to be included in the consensus. 183 00:21:48,800 --> 00:22:04,180 So today, the transactions are submitted in the clear, and this creates this big problem called MEV, minor extractable value, and simply put, the block builder can front run and background your transaction to make profits. 184 00:22:04,540 --> 00:22:10,100 And this is not only harmful to the user, it also creates a centralization effect for the blockchain. 185 00:22:10,160 --> 00:22:19,100 So in fact, if you look at Ethereum's ecosystem today, more than 85% of the blocks are mined by just two, are created by just two block builders. 186 00:22:19,100 --> 00:22:26,400 So essentially, it's a duopoly, like the architecture is no longer kind of the decentralized architecture we used to think of, right? 187 00:22:26,400 --> 00:22:32,560 And this is why the stakeholders, they're really concerned about this problem, and they really want to mitigate MEV. 188 00:22:32,640 --> 00:22:39,600 And one way to achieve this is to add privacy to the order flow, to the transaction submission process. 189 00:22:39,600 --> 00:22:48,620 So imagine the users submit transactions in encrypted format, and the block building also happens in encrypted format, without the block builder being able to see the transactions. 190 00:22:50,160 --> 00:22:56,320 And imagine you are going to execute the block building program inside the TEE. 191 00:22:57,000 --> 00:23:03,360 And the problem is that when you build the block, you have to speculatively execute the transactions. 192 00:23:03,360 --> 00:23:07,280 And I want you to think of the transaction as a small smart contract program. 193 00:23:07,280 --> 00:23:12,520 And as these programs are executed, they're going to have to access data that lives on the blockchain. 194 00:23:12,680 --> 00:23:15,060 And again, these accesses are highly leaky. 195 00:23:15,060 --> 00:23:19,820 They leak things like which crypto asset you are trading and the trading partners. 196 00:23:19,940 --> 00:23:22,680 And these are precisely the information you want to hide. 197 00:23:22,680 --> 00:23:29,720 So if you only encrypt the data and you don't obfuscate access patterns, there is very little privacy. 198 00:23:31,400 --> 00:23:40,880 Okay, so for this reason we have been collaborating with Flashbots to try to demo the performance of private block building with ORAM. 199 00:23:41,280 --> 00:23:48,620 And in some ongoing work, and this is a new ongoing work we are doing at our company, it's called Oblivious STL. 200 00:23:48,620 --> 00:23:57,000 So Oblivious computation also is not just about ORAM because ORAM gives you a generic way to take any algorithm and compile it to an Oblivious format. 201 00:23:57,000 --> 00:24:08,200 But oftentimes if you have specific data structures or specific computing tasks like graph algorithms, you can convert it to an Oblivious form without going through the generic ORAM transformation. 202 00:24:08,200 --> 00:24:14,100 And these customized Oblivious algorithms are often faster than generic ORAM compilation. 203 00:24:14,100 --> 00:24:20,740 So in Oblivious STL, we are trying to make a counterpart of the STL library, like think about C++ STL. 204 00:24:20,740 --> 00:24:25,120 This is like a standard library that's packaged with modern programming languages. 205 00:24:25,360 --> 00:24:31,120 So we want to create an Oblivious counterpart of these common libraries, and this is ongoing work. 206 00:24:31,120 --> 00:24:43,220 We have already implemented some common data structures and maybe sorting and some graph algorithms, but there's a lot more to do to finish the library and increase the coverage. 207 00:24:44,040 --> 00:24:50,040 Okay, so finally I want to conclude by asking the question again, do we need ORAM? 208 00:24:50,040 --> 00:25:01,960 And this is yet another large-scale application of ORAM because if you come to my hometown Pittsburgh, the coffee shops in Pittsburgh, they sell a donut called ORAM. 209 00:25:01,960 --> 00:25:03,260 So do you need an ORAM? 210 00:25:03,260 --> 00:25:04,660 Yes, because it's delicious. 211 00:25:04,660 --> 00:25:08,360 And if you come to Pittsburgh to visit me, I will definitely buy you an ORAM. 212 00:25:08,360 --> 00:25:09,140 Thank you. 213 00:25:17,610 --> 00:25:19,090 Thank you so much, Elaine. 214 00:25:19,090 --> 00:25:27,610 I just wanted to let you all know that Elaine will be furthering this talk in our workshop in the cryptocurrency community, which is in C101 at 2 p.m. 215 00:25:27,610 --> 00:25:31,950 today, and that will be for a much longer period of time with some workshops going on. 216 00:25:31,950 --> 00:25:34,870 So please come check us out at the cryptocurrency community. 217 00:25:34,870 --> 00:25:36,410 Hope you have a great day and a great con. 218 00:25:36,410 --> 00:25:36,990 Thank you.