1 00:00:00,000 --> 00:00:05,880 Ladies and gentlemen, boys and girls, if you're hanging out in the hallway, you're going to want to make your way in. 2 00:00:05,880 --> 00:00:06,640 We've got Dr. 3 00:00:06,740 --> 00:00:12,140 Sarang Noether, who's going to be talking with us about ring signatures from the looks of the title. 4 00:00:12,620 --> 00:00:13,860 It's this guy right here. 5 00:00:14,020 --> 00:00:14,780 He's a pimp. 6 00:00:14,780 --> 00:00:16,240 Look at his gold little thing, right? 7 00:00:16,240 --> 00:00:17,240 You got going on there. 8 00:00:17,240 --> 00:00:19,080 He's got some sort of vibe. 9 00:00:19,160 --> 00:00:20,980 You guys aren't on top of the stage here with me. 10 00:00:20,980 --> 00:00:22,080 You can't feel this vibe. 11 00:00:22,080 --> 00:00:24,540 It's really, really polarizing. 12 00:00:24,560 --> 00:00:30,180 I want to leave the stage so that way he can give all of his knowledge to us. 13 00:00:30,240 --> 00:00:32,520 So please, if you're out in the hall, go ahead and come on in. 14 00:00:32,520 --> 00:00:45,400 For those of you that are still talking, I would very kindly request you to either lower the volume a little bit and or take the conversations outside to be respectful to the people that are going to be listening to this talk. 15 00:00:45,400 --> 00:00:47,200 Sarang, you've got a full house, man. 16 00:00:47,200 --> 00:00:49,640 So knock it out of the park, man. 17 00:00:51,020 --> 00:00:52,240 Hello, everyone. 18 00:00:56,870 --> 00:00:58,990 Thank you for coming to the last talk. 19 00:00:58,990 --> 00:01:01,430 You're respecting my time by being here. 20 00:01:01,430 --> 00:01:03,890 I'm going to respect your time by trying to go a little bit early. 21 00:01:04,930 --> 00:01:07,630 This conference is fantastic but also exhausting. 22 00:01:07,630 --> 00:01:19,930 So I am a mathematician and researcher and I'm particularly interested in kind of the formalization and efficiency of our transaction protocols and those of other projects as well. 23 00:01:19,930 --> 00:01:23,570 So today I will be talking about transaction protocols. 24 00:01:23,570 --> 00:01:28,690 The title was merely a ruse to excite people to get them into the talk because it sounds exciting. 25 00:01:29,070 --> 00:01:31,090 But I'm actually going to talk about transaction protocols. 26 00:01:31,090 --> 00:01:32,830 But fortunately it will not be very technical. 27 00:01:32,970 --> 00:01:40,210 And the goal of this talk really is to kind of give people a sense of what goes into blockchain-based transactions. 28 00:01:40,710 --> 00:01:45,890 How does efficiency work on them and how can we improve it over time since that's always a goal. 29 00:01:45,890 --> 00:01:55,610 So kind of a brief outline of some options that are available that Monero and other projects, too, might consider going to and why they might or might not at this time. 30 00:01:56,190 --> 00:02:02,290 So briefly, people often say that Monero as a digital asset is crypto-node based. 31 00:02:02,290 --> 00:02:07,930 Crypto-node being kind of the original transaction protocol that kind of inspired Monero and a whole bunch of other assets. 32 00:02:07,970 --> 00:02:12,070 And it's based on that but it's not strictly true that Monero is a crypto-node asset anymore. 33 00:02:12,150 --> 00:02:14,590 So I just like to say that it uses the Monero protocol. 34 00:02:14,590 --> 00:02:18,610 So the transaction protocol basically dictates the structure of transactions. 35 00:02:18,610 --> 00:02:29,930 So what goes into them, what goes out of them, what math is used to verify that everything is completely kosher with a transaction in terms of balance and ownership of assets and things like that. 36 00:02:30,030 --> 00:02:36,470 So we've definitely moved past as a project the crypto-node protocol, but most of the basic structure is still there. 37 00:02:36,490 --> 00:02:38,250 So some big ideas behind it. 38 00:02:38,250 --> 00:02:41,870 I actually don't like some of the terminology that is used a lot. 39 00:02:41,870 --> 00:02:47,790 The word output gets thrown out a lot, especially in Bitcoin-based digital assets. 40 00:02:47,950 --> 00:02:49,450 I don't really like that term. 41 00:02:49,450 --> 00:02:53,490 I think it doesn't tell you a lot because outputs become inputs become outputs. 42 00:02:53,690 --> 00:02:56,650 So I'm going to use the phrase notes, which is something that I really like. 43 00:02:56,650 --> 00:02:59,150 Almost kind of like a bank note, you can think about it. 44 00:02:59,150 --> 00:03:03,710 But basically funds exist in like these notes or outputs that exist on the chain. 45 00:03:03,710 --> 00:03:09,110 And notes in Monero at least, using the Monero protocol, are not just recipient addresses. 46 00:03:09,110 --> 00:03:14,610 They're actually derived from recipient addresses in a one-time use kind of situation. 47 00:03:14,830 --> 00:03:29,130 The amounts of transactions are not visible in the Monero protocol, but they're in fact hidden in something called a Peterson commitment, which is kind of a can kind of think about it as kind of an algebraic one-way hash where algebra works nicely enough that we can show the transactions balance, 48 00:03:29,130 --> 00:03:30,090 which is important. 49 00:03:30,090 --> 00:03:33,470 I need to make sure that funds going in a transaction are the same as funds going out. 50 00:03:33,470 --> 00:03:44,590 And in particular, the spends themselves are done in the Monero protocol, unlike, for example, Bitcoin and its derivatives, using a specified anonymity set of previous other arbitrary notes. 51 00:03:44,590 --> 00:03:48,250 So the Monero protocol does not mix funds. 52 00:03:48,250 --> 00:03:58,830 In the Monero protocol, a particular note would be spent in a transaction, but it is basically obscured among other notes that exist on the chain that are chosen non-interactively. 53 00:03:58,830 --> 00:03:59,930 It's a little bit different. 54 00:03:59,930 --> 00:04:08,130 So a transaction basically spends a set of one or more input notes, each of which has its own anonymity set, and it generates a new set of output notes. 55 00:04:08,130 --> 00:04:11,030 So transactions consume notes and generate new ones. 56 00:04:11,030 --> 00:04:12,050 That's the idea. 57 00:04:12,090 --> 00:04:17,590 The idea of like an account in Bitcoin or Monero, it doesn't really exist in the protocol level. 58 00:04:17,590 --> 00:04:21,610 It's just kind of a nice bookkeeping abstraction that we use to tell you like what your funds are. 59 00:04:22,410 --> 00:04:23,950 So what do we mean by transaction efficiency? 60 00:04:23,950 --> 00:04:25,390 We care a lot about that. 61 00:04:25,390 --> 00:04:31,610 Well, we actually care about it in terms of kind of not just space or time, but kind of space-time in a physics sense. 62 00:04:32,070 --> 00:04:43,910 So space means, of course, transactions take up space on the chain, and provided that everyone using the protocol is going to be doing something with the chain to verify it, that space basically ends up kind of coming along for all time. 63 00:04:44,230 --> 00:04:49,290 Transactions also have a generation time and a verification time, and it's important to keep those two separate. 64 00:04:49,290 --> 00:04:58,190 So transaction generation time is, I want to spend some funds on the chain, so how long does it take for whatever the protocol says needs to be done mathematically to be done? 65 00:04:58,190 --> 00:05:04,830 And in general, that time is typically allowed to be long by cryptographic standards, so we don't want it to be too long. 66 00:05:04,870 --> 00:05:12,110 I mean, initially Zcash, for example, ran into a problem where transaction generation took a long time to do, on the order of maybe 10 or 20 seconds. 67 00:05:12,570 --> 00:05:18,130 My personal perspective, if your transaction generation time is on the order of like a second even , that's pretty good. 68 00:05:18,130 --> 00:05:20,930 The average user is not going to notice that that feels like a long time. 69 00:05:21,050 --> 00:05:30,330 But verification time is something that we do care a lot about, because if you're basically validating the entire chain of transactions, you need to operate on each individual one. 70 00:05:30,330 --> 00:05:34,110 Even if a particular transaction takes 100 milliseconds to verify. 71 00:05:34,170 --> 00:05:37,730 If you have to do that 10 million times, well, that's a long time. 72 00:05:37,890 --> 00:05:41,890 However, in some transaction protocols, we can do something called batching, which is kind of cool. 73 00:05:41,890 --> 00:05:55,890 Monero currently doesn't do this with its full transaction protocol, but the idea is that in some protocols, you can take a bunch of transactions and operate and verify them all at once in a way that's much faster than doing them independently and linearly. 74 00:05:57,170 --> 00:06:04,870 The trouble, of course, as I said, is that transactions take up space time, and in particular, every input note to a transaction has a particular anonymity set. 75 00:06:05,270 --> 00:06:10,070 And it also has to have an authorizing signature showing that it is intended to be spent in a transaction. 76 00:06:10,630 --> 00:06:17,850 Outputs, output notes that are generated, they have a host of other data, kind of auxiliary data that are associated with them that are needed for proper verification. 77 00:06:18,190 --> 00:06:25,690 And of course, signatures and all the proofs and everything that we're packing into this big transaction structure have to be verified by the network so time comes into play. 78 00:06:26,070 --> 00:06:31,390 So ideally, what we'd want to do from a privacy perspective in these projects and assets is increase anonymity. 79 00:06:31,410 --> 00:06:33,670 Well, in some sense, that's an easy parameter to change. 80 00:06:33,670 --> 00:06:38,930 In Monero, we have a parameter called the ring size, which is how large is the anonymity set of every spent note. 81 00:06:38,930 --> 00:06:42,330 And in theory, that's just a network parameter that we could change in the code at any time. 82 00:06:42,330 --> 00:06:44,150 But the tradeoff is space time. 83 00:06:44,190 --> 00:06:51,130 If we were to increase that hugely, you'd end up taking up a lot more space for each transaction, and generation and verification would become very unwieldy. 84 00:06:51,130 --> 00:06:52,710 So you can't get everything you want for free. 85 00:06:53,530 --> 00:06:56,010 So let's look at several big ideas that have been floating around. 86 00:06:56,010 --> 00:07:02,390 I often get asked, like, oh, I see all these things, you know, in the news, whatever that means for you in the crypto sense. 87 00:07:02,750 --> 00:07:07,430 But I'm not really sure what they are, how they interact, why we are or are not using these. 88 00:07:07,470 --> 00:07:09,110 So let's go through them alphabetically. 89 00:07:09,290 --> 00:07:13,570 So one of them is called CLSAG that was partially developed in-house along with some other folks. 90 00:07:13,570 --> 00:07:15,290 Random Run was the one who came up with it. 91 00:07:15,290 --> 00:07:25,810 DLSag is one that we've been working on with Pedro Moreno Sanchez and other collaborators and several others that came from elsewhere, Atlantis, OmniRing, and RingCT3. 92 00:07:25,810 --> 00:07:31,530 So each of them takes a much different approach toward better scaling with improved anonymity, ideally. 93 00:07:31,530 --> 00:07:33,010 But there's different sets of tradeoffs. 94 00:07:33,010 --> 00:07:41,230 So this is not going to be a comprehensive dive into any of these, but just a basic overview of, like, what's available as a potential future for digital assets like Monero. 95 00:07:42,030 --> 00:07:49,470 So keep in mind, like I had said, the way that Monero's Ring signatures currently work is that you have this signature structure that does some cryptographic magic. 96 00:07:49,530 --> 00:07:55,050 What goes into it are the input notes, a true spend, and a bunch of decoys that are just kind of thrown around. 97 00:07:55,230 --> 00:07:57,330 Some additional hidden amount data goes in. 98 00:07:57,330 --> 00:07:59,350 And what also pops out is what's called a tag. 99 00:07:59,350 --> 00:08:01,770 And the tag is basically used to detect double spending. 100 00:08:01,770 --> 00:08:05,250 Because remember, there's some kind of obscurity from the spending going on here. 101 00:08:05,250 --> 00:08:09,730 So if two transactions popped out the same tag, you'd be able to detect a double spend. 102 00:08:09,730 --> 00:08:19,330 So the whole signature operation has to prove that you own a note that you're spending, has to assert that the transaction balances in a hidden way, and it must prevent double spending. 103 00:08:19,490 --> 00:08:24,670 And in our current case, a transaction may actually have several signatures if I'm spending several input notes. 104 00:08:24,670 --> 00:08:26,990 This is why the scaling gets pretty bad sometimes. 105 00:08:27,750 --> 00:08:34,670 But a modification of our current signature scheme, this modification is called CLSAG, and there's a longer name for it that I'm not even going to bother saying. 106 00:08:34,670 --> 00:08:38,870 It basically does the same kind of Ring signature stuff that we do right now. 107 00:08:38,890 --> 00:08:49,870 But the benefit is that through some clever compression that this guy Random Run came up with that we worked on, it basically ends up meaning that the transaction and the signature end up being much smaller on the chain. 108 00:08:49,870 --> 00:08:52,910 The signature drop size drops by about half, which is fantastic. 109 00:08:52,930 --> 00:08:58,230 And it's faster to verify, not quite by the same amount, but still faster to verify, and in fact, to generate. 110 00:08:58,230 --> 00:09:00,850 So you basically get all of this stuff for free. 111 00:09:00,890 --> 00:09:04,770 The downside is it only works for reasonable anonymity set sizes. 112 00:09:04,770 --> 00:09:07,650 Right now, anonymity set size is 11. 113 00:09:07,650 --> 00:09:13,150 So basically any spend, absent external information, spends one out of 11 notes. 114 00:09:13,150 --> 00:09:15,510 And you really can't increase that much with this scheme. 115 00:09:15,510 --> 00:09:19,350 So we really couldn't increase the anonymity very much. 116 00:09:19,350 --> 00:09:22,670 We could do it marginally without any added cost and space and time. 117 00:09:22,670 --> 00:09:34,870 The benefit, though, is we do have formal security proofs for it, and that means that it's essentially a faster and smaller drop-in replacement for the current Ring signature scheme with provable security, which is frankly pretty tough to do sometimes. 118 00:09:34,870 --> 00:09:36,450 No real downsides. 119 00:09:36,530 --> 00:09:39,650 And the status right now, we have a preprint paper available for this. 120 00:09:40,210 --> 00:09:41,970 Hopefully going to be getting it peer-reviewed and audited. 121 00:09:41,970 --> 00:09:44,430 We have had some folks looking at it, which is a good start. 122 00:09:44,430 --> 00:09:46,270 And in fact, code is ready to go for this. 123 00:09:46,270 --> 00:09:48,090 So this is something we'd like to deploy. 124 00:09:49,270 --> 00:09:59,890 Another new signature scheme called DLSag actually changes the structure of Monero's outputs and the Ring signature in not huge ways, but enough ways to make it a little bit more challenging. 125 00:10:00,070 --> 00:10:10,390 The benefit to this scheme is that besides kind of showing all the other stuff that we like, like balance and things like this, it could also enable such things as refund transactions non-interactively. 126 00:10:10,550 --> 00:10:18,150 There's some stuff involving payment channel networks that we could enable, and very limited kinds of atomic swaps that depend very heavily on like curb choice and stuff. 127 00:10:18,250 --> 00:10:26,170 But the downside to that is the way the scheme is set up right now is it would enable a particular kind of tracing where you could detect when certain spends occur. 128 00:10:26,170 --> 00:10:31,830 And this would mean that effectively you'd have to, if you receive funds, you'd have to spend them to yourself in order to break that linkage. 129 00:10:32,150 --> 00:10:36,390 And the downside is from scaling, you really couldn't do anything to increase anonymity for free. 130 00:10:36,390 --> 00:10:45,990 So you'd effectively open the door to things like off-chain functionality, which is pretty great, but at some cost involving self-spending and certain kinds of migrating output pools. 131 00:10:45,990 --> 00:10:47,410 That's a little bit tricky. 132 00:10:47,590 --> 00:10:55,230 However, a preprint is available and we're just kind of hoping that there may be a solution to the tracing problem involved with that to enable this cool functionality that we like. 133 00:10:55,690 --> 00:11:03,210 Another one, and the authors to this paper are here in the village at some point, I think somewhere, but it's a protocol called Atlantis. 134 00:11:03,210 --> 00:11:07,070 And this is actually based on the Zerocoin protocol that's been used in other assets. 135 00:11:07,070 --> 00:11:13,170 And this was designed by and for the Zcoin asset, in fact, but the paper is publicly available. 136 00:11:13,170 --> 00:11:19,990 It uses a very, very different kind of authorizing spend proof than Monero uses right now and that we may consider moving to. 137 00:11:19,990 --> 00:11:29,410 It turns out there's another auxiliary proof that you need besides the spend proof, the range proof, that we could actually reuse existing fairly efficient code that we already have. 138 00:11:29,470 --> 00:11:36,350 I personally like Atlantis because the spend proofs become very, very small and efficient, even at extremely large anonymity set size. 139 00:11:36,350 --> 00:11:40,890 We're talking on the order of 100 or 1,000 notes instead of around the order of 10 notes. 140 00:11:40,970 --> 00:11:49,070 But the downside is, similar to DLSag, it requires a self-spend operation to avoid someone being able to detect when a spend has occurred. 141 00:11:49,210 --> 00:11:52,750 There's a limited amount of information that's leaked there, but it's still leaked. 142 00:11:52,750 --> 00:11:59,630 Effectively, you'd get pretty high anonymity sets, you'd get very efficient proofs, but at the cost of this whole self-spend operation. 143 00:11:59,630 --> 00:12:02,490 But it's very promising and I think it's actually a really clever approach. 144 00:12:02,610 --> 00:12:09,470 I know Zcoin has some code in progress and we on the Monero side have also been working on some prototyping code just to kind of test it out. 145 00:12:10,690 --> 00:12:14,710 Another one that came out very recently is called OmniRing. 146 00:12:14,730 --> 00:12:18,450 This was actually designed kind of with Monero in mind, as far as I know. 147 00:12:18,450 --> 00:12:26,710 But it's basically a transaction protocol that is based on some ideas from the Bulletproof's range proof protocol that we already had integrated for a separate protocol. 148 00:12:27,170 --> 00:12:37,290 And it effectively uses one big single integrated proof for all spending that handles spending, it handles balance, and all of our auxiliary data, all kind of like tied up into this neat efficient package. 149 00:12:37,290 --> 00:12:38,150 It's kind of cool. 150 00:12:38,490 --> 00:12:46,270 And the reason I like it is because, much like Atlantis, you get very, very small proofs and you don't even need to kind of migrate over output pools. 151 00:12:46,270 --> 00:12:52,770 You can kind of reuse the same data that's already on the chain in terms of decoys in a really, neat way. 152 00:12:53,070 --> 00:12:54,950 But the downside is the cost of speed. 153 00:12:54,950 --> 00:12:58,290 OmniRing transactions would be slower than we're dealing with right now. 154 00:12:58,410 --> 00:13:05,370 And I kind of mentioned something called batching before, where in certain schemes, you can efficiently verify many transactions all at the same time. 155 00:13:05,370 --> 00:13:07,030 And right now, you can't do that with OmniRing. 156 00:13:07,030 --> 00:13:11,330 So, the scaling is really good for space, but it's not very good in terms of time. 157 00:13:11,350 --> 00:13:18,270 Everything else about it is pretty great, though, because you'd be able to get large anonymity sets without sacrificing size very much. 158 00:13:18,350 --> 00:13:28,070 So, right now, I know the team is working on ways to allow basically either batching or kind of separating out some of the inefficient parts in a way that maybe could be batched later. 159 00:13:28,130 --> 00:13:31,030 So, this one's kind of still very much in progress, but also very promising. 160 00:13:31,910 --> 00:13:34,850 And the last big one that came out was called RingCT 3.0. 161 00:13:34,850 --> 00:13:36,550 That's called RingCT 3 for short. 162 00:13:36,790 --> 00:13:40,070 It is a transaction protocol that at first blush kind of looks like OmniRing. 163 00:13:40,070 --> 00:13:43,550 It also uses some ideas from this bulletproof scheme that came out of Stanford. 164 00:13:43,710 --> 00:13:52,150 But it's definitely much simpler in structure and, in fact, uses separate proofs for instead of OmniRing's one compact single proof. 165 00:13:52,230 --> 00:13:58,350 So, much like OmniRing, though, it would allow for very small spend proofs at fairly high anonymity sets. 166 00:13:58,390 --> 00:14:07,750 So, the reason I like it is because it can be made efficient through bashing, unlike OmniRing right now, but at the cost of some migration stuff that may involve some tricky situations later. 167 00:14:08,070 --> 00:14:12,470 Another downside is there are some questions that remain on some of the security proofs that are still being worked on. 168 00:14:12,510 --> 00:14:16,110 But much like OmniRing, it's a clever design, small proofs. 169 00:14:16,110 --> 00:14:18,890 In theory, it's actually quite efficient if you can batch it. 170 00:14:19,170 --> 00:14:24,750 And there is a prototype code actually available for this, too, and we're still kind of looking into some of the proofs along with some other cryptographers. 171 00:14:25,950 --> 00:14:28,370 So, what does this all mean? 172 00:14:28,610 --> 00:14:29,490 That was all words. 173 00:14:29,490 --> 00:14:30,390 This is a picture. 174 00:14:30,610 --> 00:14:38,830 This is a table kind of comparing what I think right now is the current status of a lot of proposed transaction protocols that could allow for different anonymity sets. 175 00:14:38,970 --> 00:14:48,570 So, with several of these, we can get large anonymity sets, which is good, whereas some of the other ones that we were originally looking at keep them fairly small the way we have them right now. 176 00:14:48,690 --> 00:14:50,450 Batching is something we want to be able to do. 177 00:14:50,450 --> 00:14:57,150 It means that you can take a bunch of transactions and very quickly and efficiently verify them much more quickly than you could on their own. 178 00:14:57,410 --> 00:14:59,930 It's kind of a mixed bag whether or not you can do this. 179 00:14:59,930 --> 00:15:04,510 A couple of proposals like Atlantis and RCT3 do let you do this. 180 00:15:05,050 --> 00:15:07,710 Whether or not we'd have to do what's called a migration is also important. 181 00:15:07,710 --> 00:15:16,830 Migration would mean that you'd effectively have to kind of have a cutoff point for which new transactions must use a new protocol and you can't use decoys from old transactions. 182 00:15:17,030 --> 00:15:22,070 It's not really a game changer whether or not you have to do this, but ideally we would like to not have to do it. 183 00:15:22,190 --> 00:15:26,790 And CLSAG and OmniRing are the only ones right now that would not require such a thing. 184 00:15:27,110 --> 00:15:33,250 There's some tracing issues with DLSAG and Atlantis that I think are more or less showstoppers unless we can solve them. 185 00:15:33,330 --> 00:15:36,870 And finally, some of them do have code available, but that's obviously not a showstopper. 186 00:15:37,210 --> 00:15:43,750 My conclusion to this is despite the fact that we have a lot of really interesting options, as you can see from this table, it's kind of a mixed bag. 187 00:15:43,750 --> 00:15:47,730 I don't see there being a definite clear winner at this point that gives us everything we want. 188 00:15:47,890 --> 00:15:53,090 You know, high anonymity set, small proofs, efficient proofs, no real downsides. 189 00:15:53,310 --> 00:16:04,250 However, I can say that right now CLSAG, provided it passes audits, which are looking like they will probably be pretty good so far, that definitely will go through as kind of a current drop-in replacement for what we have now. 190 00:16:04,250 --> 00:16:05,650 The code is very, very simple. 191 00:16:05,770 --> 00:16:15,810 And despite the fact that it doesn't really increase anonymity or allow batching, it doesn't require migration, there is no tracing, we have code for it, and it is more efficient, just slightly, though. 192 00:16:16,670 --> 00:16:19,090 But I always get asked, what about zero-knowledge stuff? 193 00:16:19,090 --> 00:16:21,250 That's surely a thing you want to do, something, something. 194 00:16:21,250 --> 00:16:26,790 So what about zk-sporks or zk-snacks or whatever the latest thing is that sounds like that? 195 00:16:28,150 --> 00:16:39,170 My motto for all this stuff is that these sorts of things you often hear about, and there's many different instantiations and constructions for things that involve general zero-knowledge proving systems, those are proving systems. 196 00:16:39,170 --> 00:16:49,050 A proving system basically lets you take certain kinds of mathematical statements and show that they are true or valid in some way without revealing too much information about them. 197 00:16:49,050 --> 00:16:50,230 That's a proving system. 198 00:16:50,230 --> 00:16:53,030 A proving system is not a transaction protocol. 199 00:16:53,030 --> 00:16:55,430 These things are transaction protocols. 200 00:16:55,490 --> 00:17:03,390 So they dictate how to take outputs or notes on the chain and spend them and kind of authorize their signing and things like that. 201 00:17:03,390 --> 00:17:04,730 These are just proving systems. 202 00:17:04,730 --> 00:17:06,030 A proving system is like a language. 203 00:17:06,030 --> 00:17:08,650 You effectively have to have something to say in that language. 204 00:17:08,650 --> 00:17:10,630 Otherwise, the language itself is not useful. 205 00:17:10,950 --> 00:17:19,450 And right now, the most efficient ways that we can do these sorts of general zero-knowledge proving systems generally require a lot of centralized trust. 206 00:17:19,450 --> 00:17:22,870 So the big asset that uses this right now, of course, is zcash. 207 00:17:22,930 --> 00:17:28,690 And the instantiation of zk-snarks that zcash uses right now gets a lot of efficiency. 208 00:17:28,870 --> 00:17:32,570 So things have become quite fast in zcash and quite small. 209 00:17:32,570 --> 00:17:35,190 But you have to do a deal with the math devil. 210 00:17:35,190 --> 00:17:39,150 And the deal with the math devil that you have to do involves centralized trust. 211 00:17:39,190 --> 00:17:42,210 And that's something that if you're okay with, great. 212 00:17:42,210 --> 00:17:47,110 You get fantastic efficiency and zcash does a good job with their transaction protocol on that. 213 00:17:47,110 --> 00:17:54,290 But if you're not willing to accept that kind of centralized trust, like I would say most other projects and assets, then you don't really get to use that. 214 00:17:54,330 --> 00:18:01,890 And unfortunately, right now, building complete transaction protocols on generalized zero-knowledge proving systems, you have to sacrifice. 215 00:18:01,890 --> 00:18:05,690 There are a few trustless ones, but they're just not quite efficient enough. 216 00:18:05,710 --> 00:18:12,310 So that's the status of that and why, you know, right now, we can't really move to a generalized zk system. 217 00:18:12,630 --> 00:18:15,950 So it's unfortunate, but hopefully someday we can. 218 00:18:16,190 --> 00:18:18,910 But so what is actually next? 219 00:18:18,910 --> 00:18:25,870 Well, we'd like to audit and deploy the CL SAG signature scheme, which will make transactions smaller and a little bit faster, which is great. 220 00:18:26,070 --> 00:18:30,410 Hopefully try to work on some of the DL SAG and Volantis tracing issues. 221 00:18:30,570 --> 00:18:33,710 Remember, DL SAG could enable things like payment channels, which would be nice. 222 00:18:33,710 --> 00:18:36,490 Volantis would allow for much larger anonymity set sizes. 223 00:18:36,790 --> 00:18:50,930 With OmniRing, which is nice because it maintains a lot of kind of Monero similarities, if we can get batching working on that so it's efficient enough or possibly proof splitting, then it would potentially be a pretty likely candidate to go in as a protocol. 224 00:18:51,230 --> 00:18:56,470 And for RCT3, it's a question of making sure the security proofs on it are nice and solid. 225 00:18:56,670 --> 00:19:02,990 But the motto of all this, if you take anything away, should be that transaction protocols are very subtle and they're very, very tricky. 226 00:19:02,990 --> 00:19:06,850 That table should have hopefully told you that you don't really get everything for free. 227 00:19:06,850 --> 00:19:13,850 While it would be fantastic, I don't think anyone has really fully solved the idea of something that is trustless and efficient in every way. 228 00:19:13,910 --> 00:19:18,790 You know, the goal is to try to iterate and get better, and these protocols all definitely do that, but in different ways. 229 00:19:19,490 --> 00:19:22,270 So do we have time for questions, folks in the back? 230 00:19:22,270 --> 00:19:22,710 We do. 231 00:19:22,710 --> 00:19:23,290 Awesome. 232 00:19:23,470 --> 00:19:26,410 So I guess if there's any questions on this, I am very happy to answer them. 233 00:19:26,410 --> 00:19:27,650 Or we could just end early. 234 00:19:30,210 --> 00:19:30,850 Yes. 235 00:19:41,240 --> 00:19:43,460 Oh, so view key functionality for things like auditing. 236 00:19:43,460 --> 00:19:43,640 Right. 237 00:19:43,640 --> 00:19:47,440 So Monero, of course, if you were at one of the earlier talks, you basically have two keys. 238 00:19:47,440 --> 00:19:49,100 You have a spending key and a viewing key. 239 00:19:49,100 --> 00:19:56,660 You can provide the viewing key to, say, an auditor or someone else who you'd like to be able to watch for transactions on your behalf, but they can't spend those transactions. 240 00:19:56,860 --> 00:19:58,520 This can be useful for many reasons. 241 00:19:58,860 --> 00:20:01,540 Some of these protocols do, in fact, permit that. 242 00:20:02,040 --> 00:20:05,000 So, for example, CLSEG and DLSEG would. 243 00:20:05,000 --> 00:20:06,840 Omni ring also would. 244 00:20:06,960 --> 00:20:10,040 Ring CT3 could also have this enabled. 245 00:20:10,100 --> 00:20:13,260 And Atlantis, I don't believe, has any such functionality built in. 246 00:20:14,360 --> 00:20:16,020 So the answer is mostly. 247 00:20:16,020 --> 00:20:24,400 The nice thing is some of these protocols, in fact, they're neatly abstract enough that you can kind of just port over a kind of view key functionality that you would want in a really clean way. 248 00:20:26,660 --> 00:20:27,540 Yeah. 249 00:20:38,460 --> 00:20:39,380 Yeah, that's a good point. 250 00:20:39,380 --> 00:20:45,020 So the question was about whether or not this whole idea of migration would require users to take action to avoid losing funds. 251 00:20:45,020 --> 00:20:46,680 The answer is no, it wouldn't. 252 00:20:46,680 --> 00:20:48,780 And I definitely should have clarified that more. 253 00:20:49,080 --> 00:21:00,360 So when I say migration, what I mean is that effectively you kind of have a cutoff point and new transactions would only be able to use members of an anonymity set that were from that new protocol. 254 00:21:00,620 --> 00:21:09,300 And whereas if you had old funds before you could use the new protocol, you basically have to kind of do as a migration transaction to move the funds over to the new pool. 255 00:21:09,380 --> 00:21:14,560 I do not think that there would ever be any issue where funds could become unspendable. 256 00:21:14,560 --> 00:21:18,160 It would just mean that there's effectively a small added step in there for technical reasons. 257 00:21:18,680 --> 00:21:24,560 Ideally, we don't like to do this because ideally you have like the anonymity set be as widely available as possible. 258 00:21:25,740 --> 00:21:29,200 But no, like I don't foresee there being a situation where funds would be unspendable. 259 00:21:29,200 --> 00:21:31,240 It's not very good for sound money. 260 00:21:33,040 --> 00:21:33,680 Yes. 261 00:21:42,560 --> 00:21:45,320 Yeah, and I should say that like I'm not the one who makes these decisions. 262 00:21:45,480 --> 00:21:50,560 So I just, I build math and then I tell people if the math, if I think the math is good or bad. 263 00:21:51,740 --> 00:21:55,360 Yeah, it's like I speak only for myself with any of this stuff because I work independently. 264 00:22:00,060 --> 00:22:04,340 Well, I mean, the Monero project is historically iterated on things as they get better. 265 00:22:04,340 --> 00:22:09,420 So picking something and staying with it is, you know, very, and it's not something necessarily done. 266 00:22:09,720 --> 00:22:19,180 So for example, moving to CLSEG, I mean, if, if one of these other protocols, you know, were fantastic and ready right now, you know, I don't think I would even consider a CLSEG as a viable option for it. 267 00:22:19,540 --> 00:22:30,880 But it's something that is a small enough change at a technical and coding level that it could reasonably be adopted very, very soon, you know, while we sort of work on solving some of the issues with these other protocols. 268 00:22:31,320 --> 00:22:34,480 So like, is that good for technical debt or bad for technical debt? 269 00:22:34,480 --> 00:22:36,300 I mean, you got to make your sacrifices, right? 270 00:22:36,780 --> 00:22:40,940 But you know, it's, yeah, it's, it's right now, like folks seem very excited about CLSEG. 271 00:22:40,940 --> 00:22:43,320 So again, I don't make these decisions, but I like it. 272 00:22:43,320 --> 00:22:44,340 I think it's good to go. 273 00:22:44,760 --> 00:22:45,120 Yes. 274 00:22:49,050 --> 00:22:54,870 So for RCT3, I mean, provided that it was shown to be provided that like all the proofs end up working out okay. 275 00:22:54,930 --> 00:22:59,890 And again, I should point out too, that none of these papers have been peer reviewed. 276 00:22:59,890 --> 00:23:05,410 So these are all preprints, which to be very, literally anyone. 277 00:23:05,670 --> 00:23:09,090 Getting peer review, by the way, it's like, it's more challenging than you expect. 278 00:23:09,110 --> 00:23:18,130 So, so provided that any of these schemes are shown to be sound, and then it's just a matter of what the coding is going to look like. 279 00:23:18,130 --> 00:23:21,850 So RCT3 is fairly simple and straightforward. 280 00:23:21,850 --> 00:23:27,490 Atlantis, slightly less so in comparison and OmniRing is probably the most complex about all of them. 281 00:23:27,650 --> 00:23:37,150 But I mean, if folks were really interested in them and worked hard, you know, that could be on the order of a year, two years, but I mean, I'd hesitate to put a number on that because you never know. 282 00:23:38,730 --> 00:23:39,110 Yeah. 283 00:23:39,110 --> 00:23:42,010 And again, if you're waiting on peer review, you know, who the heck knows? 284 00:23:42,010 --> 00:23:43,610 That can be a very long process. 285 00:23:44,390 --> 00:23:45,150 Someone's back there. 286 00:23:45,150 --> 00:23:45,630 Yeah. 287 00:23:51,820 --> 00:23:59,880 No, the protocol itself was called CryptoNote and it was also a pseudonymous paper, kind of akin to how Nakamoto's paper was a pseudonymous paper. 288 00:24:00,800 --> 00:24:01,040 Yeah. 289 00:24:01,040 --> 00:24:06,540 But I mean, it's like the, yeah, it's a separate code base, but it was, it was kind of migrated over from other assets originally. 290 00:24:09,120 --> 00:24:12,080 Oh, that just, that just used kind of a, it was a CryptoNote based code base. 291 00:24:12,080 --> 00:24:12,380 Yeah. 292 00:24:12,380 --> 00:24:15,020 And it's just since been migrated much further than that with other editions. 293 00:24:16,980 --> 00:24:17,720 Oh man. 294 00:24:17,860 --> 00:24:19,700 CryptoNote was the transaction protocol. 295 00:24:19,880 --> 00:24:23,340 CryptoKnight was the original proof of work algorithm. 296 00:24:24,040 --> 00:24:24,640 Yeah. 297 00:24:25,140 --> 00:24:27,120 Conveniently, almost identical names. 298 00:24:27,980 --> 00:24:36,200 But again, now Monero protocol has definitely moved far enough away that I would say like it has, it has a CryptoNote heritage, but it's quite different now. 299 00:24:36,700 --> 00:24:38,560 I thought there was another hand there. 300 00:24:39,720 --> 00:24:40,440 Sure. 301 00:24:45,330 --> 00:24:50,070 Oh, like, like, I guess I don't quite follow what you mean. 302 00:24:51,590 --> 00:24:52,210 Oh, sure. 303 00:24:52,210 --> 00:24:56,270 It's like, so like if I added Monero protocol in here right now, oh, I should have done that. 304 00:24:56,270 --> 00:24:56,990 Oh man. 305 00:24:57,870 --> 00:25:05,170 Right now I would say anonymity set is quite small on the order of, and again, it's a network parameter, but on the order of about 10 notes for anonymity. 306 00:25:05,170 --> 00:25:06,990 Batchable, it is currently not batchable. 307 00:25:06,990 --> 00:25:12,570 Some parts of it involving range proofs are very, very batchable, but signatures are not batchable at all. 308 00:25:12,570 --> 00:25:20,850 In terms of migration, there was a sort of a migration when we moved to our confidential transaction model, but it was a pretty clean one. 309 00:25:20,870 --> 00:25:24,510 Tracing, as far as we know, does not have any, and of course we have code for it. 310 00:25:25,510 --> 00:25:27,630 There's a question up here first. 311 00:25:28,030 --> 00:25:31,290 In what way? 312 00:25:38,380 --> 00:25:45,880 I mean, I don't really do a lot of the day-to-day in the trenches development, but there's a large number of contributors. 313 00:25:46,000 --> 00:25:53,660 I would say if you were to plot out number of commits per contributor, there's several folks who do, I would say, the majority of commits, which is probably true for any project. 314 00:25:54,160 --> 00:26:07,520 But I would say honestly right now, a lot of it is getting, I mean, ideally, if we could get more developers who were magically willing to devote large amounts of time to doing development, it would be pretty fantastic. 315 00:26:07,520 --> 00:26:14,600 But again, the majority of people who do so just do so because it's an open source project and probably can't devote that much time to it, unless you meant something else. 316 00:26:34,890 --> 00:26:35,390 Oh, I see. 317 00:26:35,390 --> 00:26:38,410 So you're saying how do you actually encourage people to come in and do such thing? 318 00:26:45,120 --> 00:26:50,980 I mean, I would say in general, a lot of it just has to do with what kind of community you choose to build, which is like an ongoing problem, right? 319 00:26:50,980 --> 00:26:53,740 I mean, the development in Zcash tends to be very, very centralized. 320 00:26:53,800 --> 00:26:58,220 And I mean, a lot of what they do ends up being more complicated because their transaction protocol is much more complex. 321 00:26:59,500 --> 00:27:02,000 And I don't really have a great answer to that question. 322 00:27:02,380 --> 00:27:04,980 Because again, I don't do a lot of the day-to-day development on this. 323 00:27:04,980 --> 00:27:06,340 I do a lot more of the math side. 324 00:27:07,040 --> 00:27:17,580 But I mean, I think what would be nice is if it were much more clear what small tasks remained open so that people could kind of have a better sense of what they might be diving into for a particular problem. 325 00:27:18,280 --> 00:27:21,380 And maybe folks aren't very good at doing that right now. 326 00:27:22,240 --> 00:27:23,700 So I don't know if that answers your question. 327 00:27:25,300 --> 00:27:27,640 And I would say even on like the math side, right? 328 00:27:27,740 --> 00:27:32,180 It's often good to step back and be like, okay, what are some problems that need to be solved right now? 329 00:27:32,220 --> 00:27:34,260 How neatly contained are they? 330 00:27:34,260 --> 00:27:37,240 And what would be the time and knowledge commitment required to solve them? 331 00:27:37,560 --> 00:27:38,300 And it's tough, right? 332 00:27:38,300 --> 00:27:40,300 Because no one wants to be the one to maintain that list. 333 00:27:40,800 --> 00:27:42,860 Which is, I don't want to maintain that list. 334 00:27:44,080 --> 00:27:46,180 There was a question in the back, I think, first. 335 00:27:46,200 --> 00:27:46,600 Yeah. 336 00:27:51,420 --> 00:27:52,500 Becoming a what? 337 00:28:04,720 --> 00:28:07,540 Oh, you're talking about the formalization of it as a protocol. 338 00:28:08,360 --> 00:28:22,090 So in terms of very, very formal protocol analysis, yeah, I mean, formal protocol documentation has been severely lacking for a long time. 339 00:28:22,350 --> 00:28:26,350 And there's steps to try to get at least kind of a bare bones protocol in place. 340 00:28:26,410 --> 00:28:29,270 But one of the big problems is that it iterates so quickly. 341 00:28:29,790 --> 00:28:34,330 And that, I mean, even the base stuff we have right now needs massive updating. 342 00:28:34,890 --> 00:28:38,770 And no one really has, no one wants to write the documentation. 343 00:28:39,550 --> 00:28:41,630 So it's really, it's not there yet. 344 00:28:41,910 --> 00:28:43,870 I mean, I personally would like to see it there. 345 00:28:43,870 --> 00:28:48,490 But again, I don't run the show, so... yeah. 346 00:29:11,290 --> 00:29:14,550 So you're talking about how do you determine what the optimal anonymity set is? 347 00:29:14,550 --> 00:29:15,010 Yeah. 348 00:29:15,010 --> 00:29:16,390 I mean, bigger is better, right? 349 00:29:16,750 --> 00:29:30,650 But I see, but a lot of, and you're talking about the, I want to say complaints that we get, because they're valid, about the fact that, like, decoy-based privacy, like Monero uses, is in many ways inferior to, like, having a full anonymity set, like something like Zcash has, 350 00:29:30,650 --> 00:29:32,830 which, you know, in some sense is true. 351 00:29:32,910 --> 00:29:38,510 But I also don't want to say that having a full anonymity set is like this magic bullet that solves all your problems. 352 00:29:38,790 --> 00:29:43,030 You know, there are all sorts, there's network metadata that floats around. 353 00:29:43,030 --> 00:29:45,270 There's other transaction metadata that floats around. 354 00:29:45,270 --> 00:29:47,190 Zcash has transaction metadata, too. 355 00:29:47,390 --> 00:29:50,570 You know, folks maybe don't talk about it as much, but, you know, they do, too. 356 00:29:51,570 --> 00:30:00,110 But it is absolutely true that, like, certain kinds of analysis that are possible with decoy-based assets like Monero are because the anonymity set is small. 357 00:30:00,730 --> 00:30:08,110 And, you know, anecdotally, I would say, like, the numbers we've been kind of throwing around are, like, two orders of magnitude differences. 358 00:30:08,130 --> 00:30:10,210 So we're at, like, order O of 10 right now. 359 00:30:10,250 --> 00:30:21,910 We're thinking, like, if you, once you get to, like, 100, then you start getting a lot of diffusion in your transaction graph that I would estimate would probably reduce the effects of that kind of analysis. 360 00:30:22,190 --> 00:30:25,030 But, again, that's not the only thing that you have to care about. 361 00:30:25,130 --> 00:30:28,970 There's plenty of other metadata that's floating around that's very, very tricky to get rid of. 362 00:30:32,720 --> 00:30:45,560 So dandelion, yes, so in terms of, like, network level stuff, like, kind of the big goal is to be able to allow for much better support for running over Tor, running over I2P, and, like, running dandelion-style routing. 363 00:30:45,800 --> 00:30:54,020 But running dandelion-style routing where some folks are running over just the plain old internet, some folks are running over Tor and some over I2P is surprisingly tricky. 364 00:30:54,240 --> 00:30:57,660 And we've had some folks who have been looking very, very deeply into doing that. 365 00:30:57,660 --> 00:31:00,220 So the plan is to integrate such things. 366 00:31:00,420 --> 00:31:02,040 But it has to be done carefully. 367 00:31:02,040 --> 00:31:06,040 And, again, like, there's running over Tor doesn't magically mean that there's no metadata floating around either. 368 00:31:06,040 --> 00:31:07,380 So none of this stuff is a silver bullet. 369 00:31:07,380 --> 00:31:10,660 It's very, very layered and very, very complex to integrate properly. 370 00:31:11,740 --> 00:31:12,220 Yeah? 371 00:31:15,490 --> 00:31:17,010 What's the next level? 372 00:31:19,230 --> 00:31:22,630 I would say, like, having, like, something like this. 373 00:31:22,630 --> 00:31:22,910 You know? 374 00:31:22,910 --> 00:31:28,530 Being able to have much more efficient transactions at a much higher anonymity set size. 375 00:31:28,790 --> 00:31:30,010 Like, what is that going to do? 376 00:31:30,010 --> 00:31:30,590 I don't know. 377 00:31:30,590 --> 00:31:32,030 Right now, it's usable. 378 00:31:32,030 --> 00:31:33,470 It's usable right now. 379 00:31:33,670 --> 00:31:36,270 But, yeah, it's usable right now. 380 00:31:36,270 --> 00:31:38,830 But, you know, there's plenty of analysis that works on it, right? 381 00:31:39,530 --> 00:31:42,470 And it would be nice to not have that analysis work anymore. 382 00:31:43,910 --> 00:31:47,650 If one person can do the analysis, any person can do the analysis. 383 00:31:47,650 --> 00:31:50,890 I don't want the bad guys to do the analysis either and put people in danger. 384 00:31:54,610 --> 00:31:55,610 All right. 385 00:31:56,110 --> 00:31:57,490 That's plenty of questions. 386 00:31:57,530 --> 00:31:58,610 We'll just go ahead and stop. 387 00:31:58,610 --> 00:31:58,830 All right. 388 00:31:58,830 --> 00:32:01,570 Well, thank you for indulging me in speaking here.