Alright everybody, let's give it up for Ruben Yap with us on Back to Zerocoin. Yay! This guy. Alright, here we go. Okay, let me... Okay, hello everyone. My name is Ruben. I'm from the Zcoin team. And today we're going to be talking about basically how we handle broken cryptography in cryptocurrencies and some of the challenges and lessons we learned from the catastrophic fall of Zerocoin. So, just a bit about ourselves. So, we are a privacy coin that launched on our mainnet in September 2016 and we actually pioneered the private use of Zerocoin, which is actually different than Zerocash. And it was actually one of the earlier protocols privacy protocols to actually introduce the third-party mechanism. We are currently using a different privacy protocol that we replaced after Zerocoin.Sigma and we are currently working on something called the Lattice, which is also being considered by NMR as a possible scaling solution for Nero. We have a team of about 19 people, which we know almost more than half are developers, and two executives, one of which is here, and six who are involved in operations, including me. We are working all around the world and most of us are full-time. So, the thing about dealing with bugs in cryptocurrencies are particularly difficult. And the more that we settle a true cryptocurrency, the more difficult it is to actually deal with. For example, the first thing is the decentralized nature of these networks. For example, if you have an app, and the app store has a bug, you can just push out an update, and everyone updates, right? But the key point of a blockchain app versus a decentralized app is that it is not forced to upgrade. You can only upgrade if you want to. And what happens is that, let's say, if you can just turn off a fix, you need everyone to agree and agree for that kind of fix to turn off. And it's about convincing not just your users, but the pools, the exchanges, to actually update urgently, without actually causing a panic. It's really important not to cause a panic, especially in a cryptocurrency. Now, one of the biggest challenges of open-source software is that, actually, every single piece has to be accompanied with the associated code. Meaning, let's say, when I'm fixing the bug, the fix to the bug will have to be committed to GitHub before I can make a release. And that's a real problem, because by committing the fix, I'm telling everyone about the tool, and that's also a real issue there. The second one is also really bad. It's really hard. Because, let's say, if you suffer from damage, if my coins are being created, and those coins are sent with changers and bought by innocent people, it's very difficult to say, roll back the damage per se, because, you know, you have innocent people who will give you the coins. And, you know, we don't have another, like, a very classic type of situation. So, you know, many times, you cannot just undo the damage, and most of the time, the damage is permanent. So, what are cryptographic tools? You know, we have to sort of distinguish them from, let's say, like, you know, software implementation tools. And a cryptographic flaw is a flaw that happens in the actual mathematics of it. It's not just a software bug in the code, but actually a software bug. There's a problem with the building block. And, you know, there's been actually many ways of implementation and software bugs, even in Bitcoin. Let's say, like, you know, Bitcoin, for instance, over 184 billion coins were created up to that. That was a software implementation bug. So, you know, there was Stella, Zcoin, stuff like that. A lot of transactions were bad. Payback systems suffered as well. And then all of these, like, just pure software implementation bugs. They don't actually go down to the problems in the mathematics. Now, these are some of the examples of what cryptographic flaws. And it happens a lot more to privacy points because of, you know, we use, like, cryptographic mixing of methods. And, you know, there was a Zcoin vulnerability. There was a vulnerability that was actually live for two years since its inception. And no one actually really knows right now whether it's been exploited or not. Narrow net inflation bug that actually was never exploited. And, you know, you could actually tell there was no sort of cryptographic points being created. And Zcoin, the one that we are talking about today, there was a huge zero-point inflation bug in April 2019. And it was actually resulting from a failure of one of the zero-point features. It actually created about 67,000 points up to then. Luckily, that's less than 1% of circulating supply. I mean, our current supply is about 8 million or so now. But, you know, it's still something that we cannot retroactively fix. So, just to give you an understanding, for those of you who are not familiar with zero-point, zero-point is a privacy protocol that allows you to mint, which is the destruction of the point. And then the spam, which is the redemption of brand new points with no previous transaction history. So, it was actually like the first application of zero-point. It proves that there is this sort of burn and spam mechanism to provide privacy. And when you sort of compare to, you know, other types of privacy mechanisms, like CoinJoin or Ring Signature, Ring Signature and CoinJoin are kind of obfuscating transactions. So, fighting the crowd. And zero-point attempts to try to break the transaction rules between the coins because the brand new coins don't have any transaction rules to the previous burn. And there were numerous problems with zero-point. And we probably should have looked into it a lot harder. And the origin of zero-point paper was written by Indian scientists, like Tristan Dhamma and Matthew Green, which then also wrote the zero-cap paper, which now is the foundation of Zcash. And, you know, when Zcash was started, we only had one brand. When we started it, it was like an experiment. And we trusted it. These people are like talkative artists. You know, one of the talkative artists in the world. And we kind of trusted it. And that was one of the bigger problems that we had. It was actually rather quickly written. And certain constructions of the proof, that means it wasn't actually fully described. It was only described in the software library that they created. And that's a big problem, because then, you know, it's a very different thing than, let's say, I'm reading through the paper and understand how it all works, rather than going to an individual cryptanalysis session to have this whole scheme actually work. There's really no single paper exactly describing the way zero-point is implemented in the library. And it requires reading through bits and pieces of other papers here and there. And, yeah, it's not as if we didn't take a look at it. No, we actually engaged a cryptographer to actually try to find flaws in augmentation, in the zero-point security model. And we actually did find two of them, which was that it allowed a packet to create, to destroy points of promises while on transit, and a packet can actually hijack redactions. Let's say someone creates points to redeem themselves, those points can be redirected to someone else. However, we will talk about this later, it isn't as serious as it seems to be, because to actually pull off this attack successfully, you would actually need to have control of the hash power, which is more than 51%, and control of the network to be able to systematically censor transactions. If you've got control of all of this, you have kind of effective control of the network, but we'll talk a bit more about that later. Now, April 9th, which was zero-point, which was the protocol, was hacked, and it led to a flaw-proof, and coins were actually created out of thin air. And this vulnerability actually impacted all our projects utilizing zero-point on business. But we were the only ones that hacked. So, just kind of off the timeline of the attack, we actually noticed a spike in zero-point anonymization transactions. We did monitor the network just to sort of save that. And even later, the problem with privacy opt-in is that it generally takes up such transactions quite a lot. And suddenly, we've seen every single max number of zero-point anonymization transactions. And we were starting to wonder what was happening here. What happened, actually, was at one point, the spans exceeded the birds. And we knew something was definitely not right there, and that's supposed to not happen. And we were actually kind of really stressed. Obviously, we didn't know where the flaw was, or we knew that something was wrong. We immediately contacted the mining pools that we know to inform them to request a stable loop of zero-point spans. That's not done at the consensus level. There's a parameter that pools can choose how many zero-point spans they want to process per block. And we told them, you know, we are actually investigating certain zero-point re-reactors. Can you please reduce this to zero while we investigate it? Luckily, most of them did. But there is still some unknown pools continuing processing. So this hack was continuing to happen, and we couldn't really stop it because of this decentralized nature. We actually did inform other mining programs utilizing zero-point of a possible issue. And we said, look, there's something that's not right here. We noticed more spans than mints. We don't know if you guys are affected, but maybe let's create a working group to see if we can find a solution here. On the 16th of April, because, you know, we had to disable zero-point spans without telling the whole public. But it was already too long. It was already like one week ahead. And people were starting to complain. Why can't we process my zero-point spans? And we had to come out in public about this. We had asked the pools to disable zero-point spans while we were investigating. And we were getting that release. Now, after two days, well, actually, it's already like ten days since we discovered the hack. We finally discovered the root cause of the flaw. And we confirmed that it was actually a cryptographic flaw among the proofs. And this was discovered by our own lead developer, Peter Schiller. We did a limited disclosure to the zero-point working group to tell people that, hey, you know, this is something that we know. There's definitely something that's wrong. We think that everyone's affected. But we didn't know the exact problem yet because we didn't want to give ammunition for this other point to potentially attack us as well. But we just wanted to tell people that the problem is real. Maybe you want to stop looking at it. We are in the midst of patching it. But you might want to keep zero-point disabled. Because at that point in time, the other projects, such as Clivex, had already disabled their zero-point protocol prior to this happening. They were vulnerable to the different software implementation problem for a rather serious attack. And they had disabled their zero-point. And we were telling them, keep it disabled for now. They were actually planning to reactivate it. And we told them, since you have it disabled, just keep it disabled for a little while longer. Then we'll figure out what's happening here. And I think that's what we did. On the 24th of April, we had a little bit of an e-mail that said, hey, do you know how to do it? We didn't really engage with it too much. We kept him off of it to work with us for security. But we didn't really engage with him so much. So on the 24th of April, we actually released an emergency software update, which actually disabled zero-points at a consensus layer. Just remember, we only disabled it at a minor pool level, but it was still spanscaping through those blocks. We only had a two-day window. And we were kind of lucky that we had a small void, so it was relatively easy to do this. Now this is something that we will not be able to replicate in the future as we grow bigger. And once the hard fork came into being, it actually completely stopped. And we needed a total number of damage of 69,000 points. And the only reason why we knew about the exact amount of damage is that actually if you knew the exact flaw of zero-point, you could actually create perfect fortunes. But because I didn't quite understand it, it just kind of got scintillated. And the stance that he created had a certain signature that was slightly inflated in size. And that's why we knew of the 69,000 points that he created. Now what actually happened was when this happened, we did inform the board. One project actually kind of jumped up, I don't know, for whatever reason, Dave and me. They had a disclosure first before we did. And said, oh, we are not affected, we are convenient. Zero-point is disabled on our network. And that's, to put it in a safe, that's a bit of a dick move. Because other projects would have not secured themselves. Other projects did not have a mechanism to just disable zero-point like that. And this was a real big problem for us, because although we had already secured ourselves, all these other projects that were still using zero-point did not have a clean way to disable it very quickly. And this actually required us to come up with a quick disclosure to say, okay, this is what's happening, I'm not going to go into the exact details, but I would like to advise you that this was one of the real problems that really kind of hit us really badly. Now, on the 30th of April, luckily, all projects that we were aware of had disabled zero-point, otherwise Sparks was our platform. And Sparks is kind of like, for those that are using the Dash master code, Dash master code, it can actually have a sort of master key that can turn off certain features. So for those points, they had a busy time, but that just turned off, which is great for stopping a hack, not so good for decentralization. And that made a full disclosure of cryptographic vulnerability and made it public. And after that, one or two months later, we finally deployed a 5% protocol that we actually had been working on since early 2018. So it was actually a bad ending, it replaces zero-point. So what actually did we learn from the incident? And we think there are actually three key pillars in dealing with cryptographic flaws, capability, communication, and promotion. And the first thing is that no one wants to deal with other people's shit, especially on a daily basis. When a cryptographic flaw happens, you have to act really quickly. And we tried looking for help, just in case we couldn't solve it ourselves. We were really worried this could actually kill the point. And we reached out to all of the researchers, everyone was all busy, and didn't really want to touch this problem because it was a really big problem. And I think that's actually a really key differentiator between projects that merely just implement other people's privacy protocols versus those that actually develop it themselves. For example, with Zcash, there are so many other privacy projects that use a Zcash privacy protocol. Similarly, there are a lot of projects that use a Monado privacy protocol. And sure, we get how it works, but they don't really do the inner workings. And that's really dangerous, because then they rely on whatever the parent project is to make disclosures to them. And sometimes that doesn't really work, as we'll see later. And sometimes you really cannot trust everybody. We'll talk about this a bit later, but even cryptographers who engage as a third party can actually screw you over as well, especially if they just contracted as well. They can exploit it themselves, or they can punch a packet of paper and blow it up out of all portions and gain credit for themselves, which we'll see what actually happens with the Zerocoins profile and all of the data. Now, disclosure and working together with other projects and competition is very risky, even though we were all incentivized to fix the Zerocoin. Our experience with this whole Zerocoin thing was so bad, that I think in the future we might not even collaborate, which is very sad. But maybe you guys, you know, there's a real breach of trust that we will not have. So you have to carry it with you. So, communications. We have a server of people that really talk to the community, maybe a PR infrastructure and the tool itself. And to the community, of course we try to be as autonomous as possible to let people know that there's a problem. But again, we have a standard of information, at least one, to fix the problem and, you know, totally sort of lock it down. And we also need to make sure that, you know, we're not causing any panic. But other than that, there's all this speculation about what we might be doing to try to really impact the trust of the program. Now, the thing that's really important is the engagement of the media and PR. When something goes wrong, you really need to be proactive. You're not just reactive. And we made a mistake before we kind of just reacted to the problem. And in this particular case, when we knew we had a problem, we knew the problem, we straight away reached out to our media. This is our official press release. This is what it is. If you have any questions, talk with us. And we really want to make sure that you got the portrayal of the bug correctly. Now, just to give you an example of something that went really wrong. So remember those two bugs that we found previously? They were not that critical, which was caught burning the 0 coins we found on the carpet. That incident actually provoked all this media and said, I found the critical flaw of the 0 coin. And the problem was that we had engaged him to actually find this flaw that we had patched it, which was actually scheduled for activation. And what had happened was, you know, all the news was saying, critical flaw of 0 coin, you know, this thing can't be fixed. And actually, as I mentioned, it is actually really difficult to take advantage of that flaw. So it's really important to just proactively reach out instead of waiting for people to crack them. Now, infrastructure, of course, you know, is always good. Although we are a decentralized approach, we should be knowing who our main stakeholders are, especially with exchanges and mining pools. And we have to make sure to open up good enough communications with them so that when we tell them, hey, this is a 0 coin, this is an emergency update, at least, you know, they trust us enough to take it at our word. It's not the best thing, but we need to have a good communication about that. And the worst thing, I guess, is through the code. We need to communicate through the code. Remember, every single sort of fix that we put has to be committed to the source code before we can actually make a release. And one way to do it, there are, I guess, two approaches to do it. One is the Zcash way, which is basically wait for a huge update and then sort of sneak the fix in. There are certain drawbacks to that, because that means you need to be open for a much longer period. Or for us, what we did, we kind of downplayed the fix. So, for example, when we did that and we had an inflation bug, we said, oh, this bug, we fixed the bug that solved TDOS, but then actually it was a source of inflation bug. So, what we did was to downplay the fix and then we committed it to GitHub so that it doesn't result in any sort of panic. But later on, it was fully disclosed. So, the last one, I guess, is a caution. You know, I don't trust Verify, even if it's done by the worst batch of programmers or whatnot. And as I said, understanding the protocol is quite different than being a Git analysis of it. And the 0.4 was actually quite tricky for me. The protocol has been around for a long time. I've seen, you know, people have looked at it. There are cryptographers from different projects looking at it. And no one thought everything was okay, right? And unless you actually pointed it and stabbed it in the right eye, there's something wrong there. So, the case will actually be really, you know, analyzed and considered for caution. Now, don't be in a rush to deploy any technology, especially when you seem smart about it. I think this is something, you know, we have been giggling off. Like, for example, our free follow-up application called MPP. You know, there was a new paper out that promised to be better than that. We have more fanfare than what happened. And we spent about eight to ten months kind of, like, trying to work this out and develop it. And about two weeks before launch, there was actually a paper out that said, MPP is broken, we can't attack it in this way. And he mentioned that it just took, like, one more year's worth of work. So, we had to actually invest in more research to actually fix it. Took another year to, you know, get that paper out and deploy it fixed. And I think it's better to actually, rather than keep on looking at new, shiny things, to wait for the technology to mature before we launch it. I mean, it seems a little obvious now, but, you know, it was, like, very competitive. What I need to do is quite take on the most, like, sexy technology. The other thing I would say is, like, consider using certain variables and limiters that can slowly lapse. So, for example, in Zippo, we actually had a limit of, let's say, like, 500 Zippo per block that could be spent. It's almost, like, similar to what's, like, Bitcoin having, like, a one in five or a million per grand loss of tax. I think it's quite special when you're dealing with, like, such new technology. It's probably wise to have some sort of, you know, like, limiters in place. And I guess that actually saved us, because of that block, we could limit the damage. We could have just, like, created, like, one billion points of up to that. But it's not ideal, and it has to be, you know, it's just one of the many fixes that we could do. But we have to be very, very careful that we're not introduced to decentralization. Like, I'm actually personally really against sports, because, you know, it's basically the developer who has the key to be able to turn off functionality. And I think especially with the privacy coin, that's horrible. Like, with that, if, like, a law enforcement or, like, a government entity goes to death, turn off privacy. I think that's a horrible idea. So, let's quickly want to replace the Zippo coin. We're currently on Sigma, which is based on much better data. Very similar, like, the construction is relatively simple, and every single portion has security proof. And it works exactly like the Zippo coin, except it uses different cryptography. And it's a lot smaller, it has small proof sizes, and it also doesn't trust the setup. So this is already currently deployed on Netflix, and it's like things like NDI. The Lattice, some of you may have already heard. It further expands on Sigma, and it eliminates the need for burning and redaction and fixed denominations by adding locks as well. We also have the ability to have anonymous payments. That means you don't have to keep redeeming back the base layer. But it requires a self-spam, and it's a problem that we're working on. It's also a problem that if the Lattice is to be ever considered to be deployed on Nero, this is a problem that needs to be solved. So on Nero's proposal, the Lattice is kind of different than how the Zippo coin intends to use it. So on Nero's, if I'm correct, it intends to be like a really large loop, it's like a thousand or so. The way the Lattice Zippo coin intends to be used is as a similar Zippo coin, you're doing burning and redaction. So it's different approaches, but also in the same analogy. So just a quick comparison. I just hope that I don't make a bit of errors in some of the proofs cited. So this is just a sort of overview of the different pricing mechanisms. So as you can see, Nero actually solves most of the issues of the non-empty set size, which is something that's active research. The thing that needs to be corrected is that in the Lattice Sigma, the proof sizes when you're dealing with all the proofs, including the auxiliary proofs, the range proofs, is about 3 to 4 kilobytes. You can also have R-negative, so it's about similar to Nero. And I think everything else is relatively correct. And you can take a look at how bad your coin is when you compare it to all this other stuff. So yeah, you can find out more. If you're a very active target community, you want to find out more about Lattice, you can go to that website. You can have a zoom meeting later on at the website. So yeah, thanks for watching. Thank you very much. So right now, I mean, originally we did think about having the Lattice on Q1 2020. But after this incident, maybe we should slow down a bit, and that may be a wise choice. But we do have the cryptographic libraries, as you already know. And hopefully, we can share some of that as well. But right now, I would say that we're kind of packing up, making sure everything is fine and dandy. We also need to do more of the development. But then, I think maybe in about one or two months' time, the Lattice development will really start paying in. So that's kind of where we're at. Yeah, we're already in great touch with Sauron. And we already opened it. We actually agreed privately that we need to share all sources of what we've done to Sauron. Before we even begin to open source. Okay, thank you very much.