start	end	text
0	7200	And now we have our next speaker, Mila Paul. So, she's an educator pursuing her PhD
8800	16740	and teaches offensive and defensive techniques. I just got a demo here. So, welcome Mila. So,
16740	22840	guys, here's Mila. Alice and Bob, and let's see what are the secrets, big secrets. Here.
29900	32680	I thought I was going to have a clicker here, but I guess I'm going to
32680	38900	like be attached to this computer. So, my name is Mila Paul,
39700	43540	and I'm going to be talking about the cryptography behind blockchain.
45220	51600	Okay, so let me tell you a little bit about myself. I started like 20 years ago. I started
52540	56920	when I started getting my computer science degree. I started working at my school in
56920	61740	hardware and systems, and I did that for a while. Then I started defense contracting in the Middle
61740	70020	East, and I ended up there for about 12 years. But I did learn a lot. I did systems, networks,
70020	79500	some infrastructure design, and investigations. Then a couple of years ago, I started my cyber
79500	87020	ops degree program at DSU, which is actually a pretty amazing program. And then I got into
87020	96780	blockchain, and now I'm back from the Middle East. And I live in Florida, and I just work in
96780	104460	blockchain. So, I'm adjunct faculty at Dakota State. I teach classes online in cyber sciences.
105700	110580	Also at Wayne State, which is where I got my bachelor's, and I'm teaching blockchain
110580	116940	certification course for them. I teach for open classrooms. I don't know if you'd heard of that,
116940	125200	but it's a French company, and it's kind of like Udemy. And I have some courses on there in Java,
125200	134900	Spring Security, OWASP, GitHub. So, oh, well, right now I'm also working with a company called
134900	143940	Blockspaces. It's an accelerator program for blockchain companies. So, I'm software architecting,
143940	149680	and they asked me what I wanted my, you know, my title to be. I said bad cop, but that didn't work
149680	155240	too well for them, just because I guess they have some enterprise companies working with them.
155480	164280	Ha ha. Okay. So, what am I here to talk about? The basic theme for DEF CON was cypherpunks. So,
164280	171640	I'm going to go over a little bit of the cypherpunk ideology. Why did the cypherpunks
171640	176240	care about electronic cash? I'm not going to go into the history.
179000	184380	And then I'm going to talk about the possible threats to Bitcoin Core and post-quantum
184380	193280	algorithms that are being considered. So, what was the best accomplishment made by the cypherpunks?
195500	203300	To me, it's the electronic cash systems. I wholeheartedly believe that that is where
203300	210980	blockchain came from, because there were so many attempts before that, since the 80s. So,
210980	217020	basically, the ideology is privacy. And they were trying to come up with different ways
217880	225760	to ensure privacy on networks that just were not safe. So, a quote that I like is,
225760	229800	privacy is the power to selectively reveal oneself to the world.
230460	234320	So, no one should be able to just go in and go into your computer, your phone,
234320	242300	like find things out, because you didn't tell them. All right. So, how do they do that? How do
242300	251040	they want privacy to happen? So, the biggest challenge, really, with privacy and anonymity is
251780	259700	just the networks aren't safe. So, TCP, IP, and BGP are like super archaic and just not secure
259700	269060	at all. Wireless security is a sham. There's just no such thing. Google's everywhere. So, I mean,
269060	275940	these are some basic challenges we face today in privacy. Another quote that really hit me
275940	283660	from the Cypherpunk manifesto from 1993 is, we, the Cypherpunks, are dedicated to building
284580	289940	anonymous systems. We are defending our privacy with cryptography,
290240	296580	with anonymous mail forwarding systems, with digital signatures, and with electronic money.
298380	303880	So, as you might know, the Bitcoin core is made up of the electronic cash system front end and
303880	312780	then the back end, which is that blockchain. So, Bitcoin core is just basically, the blockchain
312780	319080	is basically like a hodgepodge of all these algorithms that have already existed. So,
319080	325000	the ones that I'm going to talk about today are SHA-256, the RIPE MD-160,
325000	330700	Elliptical Curve Cryptography, Merkle Tree Hashing, and HashCash.
331500	338180	Coming together, I just think that it's just a genius, like, blockchain. So,
339140	344060	I'm going to talk about the symmetric side. So, we've got the SHA-256,
344060	350580	RIPE MD-160, HashCash, and Merkle Tree, with an extra E.
351760	360080	So, the SHA-256, if you know how hashing works, basically you have this message or this
360660	366620	line of code or whatever that you're going to input, and then run that SHA-256 algorithm on it,
366620	374060	and then you have this fixed output. So, if you run 256, your output's going to be 256 bit.
375580	381520	So, what's it used for on Bitcoin Core? You'll use it for transaction hashes. So,
381520	387320	then if you have a transaction, like, I gave you five bitcoin, it's going to be...
387760	393960	Did you say thanks? You're welcome. Yeah. So, then you run 256 on it twice, then reverse it,
393960	400920	and that's what they put in the actual block. And then it's used in mining when they're trying
400920	406260	to get a specific hash with a certain number of zeros in front of it, and they just keep running
406260	412840	that SHA-256 over and over again with a random number to get the specific number. And it's also
412840	425760	used as a part of key generation. So, RIPE MD-160, it's a compression function, so it's pretty
425760	435220	complicated there. It runs 80 steps with five variations with each step, and then that runs 16
435220	444960	times, and then it runs through some modular arithmetic twice. So, when you're creating a
444960	452240	public key, the reason why the Bitcoin public key is much shorter than the private key is that they
452240	459440	run that extra RIPE MD on it to compress it. So, you start out with this key that's created.
461260	465580	This key that's created by the elliptical curve cryptography, and I'm going to go over that later,
465580	472460	but that public key is created, and then they run 256 on it, and then it's compressed. So,
472460	478820	then you have this shorter address. And there's a reason why I'm telling you all of this now.
478820	488220	Okay, so the hash cache, that was created in 1997. A lot of people were sending huge spam emails
488220	494380	from wherever, and so this guy, actually he created it for the Department of State. It was for spam
494380	503060	remailers. He started this proof-of-work algorithm. So, basically, it measures your resource usage,
503060	507900	and the only way that you can prove it is by having this certain piece of code after
508460	513940	you run those resources. It's SHA-256 squared or something. So, with each email, they would
513940	519900	have to run SHA-256, and if they were trying to send a million emails, that would use a lot of
519900	532240	resources. So, that was used in this for the mining. So, basically, how that works on the
532240	539020	Bitcoin Core is you take this metadata and you add it to a random number, which is a nonce,
539020	544480	and then you run that however many times you need to, to get a certain number of zeros in the front
544480	552200	of that hash. And the more zeros you need to have in front of that hash,
552720	556660	the more difficult it is. So, that's the result of the proof-of-work.
558260	561060	And the Merkle Tree hashing...
563940	570580	So, part of what makes that blockchain so secure is that it's trustless and immutable,
571540	577440	and you reach that with consensus and validation. And Merkle Tree hashing is the algorithm that's
577440	583020	responsible for that on the blockchain. And, of course, that helps with the integrity of
583020	589820	those transaction hashes. Does everyone know what immutable means?
592640	598620	Yeah, not being able to change. Yeah. And then trustless, obviously, like, if all of you guys
598620	603740	were on the... if all of you guys were the ones validating everything, like, you wouldn't have
603740	612100	to trust each other. That's just how that algorithm works. Okay. So, I'm gonna go over
612100	618520	Merkle Tree hashing. That's a Merkle Tree. That top hash is... let's say if that's the Bitcoin
618520	623900	blockchain, the top hash would be the Genesis block, the first block ever made. And then on
623900	630820	the bottom, let's say L1, 2, 3, and 4 are the new blocks that are about to come in. So, the way that
630820	637000	works is, let's say you have a new block that was just validated and about to join. It's got that
637000	650480	hash as the header. And then it joins the next level. And you'd take L3 and L4 at the end. I'm
650480	657820	used to being able to walk around. Those two, you'd hash those two together. And then that would be
657820	662880	the hash above. And then these two hashes would be hashed together. And that would be the hash
662880	672320	above. So, they're all connected. Every single transaction that's added is added to that top
672320	680180	hash. Basically, it's like a ripple effect. When you add a new block, it will change that metadata,
680180	685920	the hashes of the ones that are above them. So, every time you add a new block, that Genesis
685920	691540	block hash changes that metadata. So, that's how you're always able to validate and keep that
691540	701080	immutability. Because if one thing changes, the whole thing would change. Also, the Merkle tree is
701080	707820	really efficient because if you have to validate something, you don't have to go in and look
707820	715040	through every single block. You can go through the blocks that that specific block was on that tree,
715040	723060	that branch. So, that makes it more efficient. GitHub uses Merkle tree as well, except you can
723060	731440	actually save files on GitHub. Okay. So, we talked about symmetric cryptography. So, there was the
732160	740640	SHA and the hash cache and Merkle tree. Now, we're talking about the asymmetric cryptography.
740640	750560	This is the fifth algorithm I'm going to talk about. So, elliptical curve cryptography is part
750560	759860	of public key infrastructure. It's asymmetric. And the specific kind that was chosen for the
759860	771860	blockchain is ECDSA sec P256K1 elliptical curve. So, I'm just going to quickly brush over what
771860	777400	public key infrastructure is just because I'm forgetful and I think that some other people
777400	782400	might be. Anyway, so, I'm going to go over that Alice and Bob scenario that we've all heard.
782620	789580	So, we've got Alice and we've got Bob. Alice wants to send Bob a super secret email.
790640	799200	So, they decide to use public key infrastructure. So, the keys at the top that you see, the top
799200	806920	left, those are the public key. They both share the same public key. Now, Alice wants to send
806920	811720	Bob an email. And so, she has a private key. She gets that private key and it's derived
813300	820640	from the public key. And she signs that email with a digital signature.
822300	825020	Now, she sends that email over to Bob.
826540	833760	And Bob verifies it with his public key. So, now he knows it came from her. He wants to send her
833760	841280	an email back. So, he has his own private key and he signs it with his digital signature and sends
841280	847040	it to her and so on. So, that's our little review on PKI. So, what does that have to do with
847040	854460	Bitcoin and blockchain? All right. So, a Bitcoin user will have a public key and a private key
854460	861960	using PKI. And the transactions are made through a digital signature with the private key
864080	870500	and are validated. So, this is what an elliptical curve looks like with the ECDSA
871320	880500	SECP256K1. That fiber is just kind of like that, I don't know, just that little weird round shape.
881220	891940	So, there's three steps to using the elliptical curve cryptography. There's key generation,
891940	900280	are you guys able to hear me? Key generation, creating the digital signature,
901600	906460	and verification. So, first you start with key generation. So, we'll create the private key
906980	913920	and the public key. So, the random number that we're talking about with the private key that
913920	921100	it starts with is a point that's like around that curve. So, when you see on the right,
921100	928280	you'll see all the points. Basically, to guess a private key, you'd have to know which point
928280	937400	it started on, the random number. And the signature is created with some modular arithmetic
937400	943800	and you're working with the random number, that R is the random number. So, the R is the starting
943800	950440	coordinate for that elliptical curve. So, it's kind of like a billiards game. You start and then
950440	955700	you hit one point against the table and then you continue playing the game and then
957460	963440	and then when the game's over, you can't go backwards with everything and then
963440	969040	end up with that same random point that you had. And that's what makes elliptical curve
969040	975840	cryptography so difficult to break. That was the best metaphor I could come up with.
982810	989550	Thank you. Is that okay? Can you guys hear me?
991210	999740	Yes. Okay. I didn't like this thing.
1001200	1007620	Okay. All right. And then the last thing you do is verification. So, the verification is where you
1007620	1015900	take where you verify the random number. So, if you had the right private key, you'd be able to
1015900	1020320	go through those five equations and then verify the proper random number and then you get the
1020320	1024420	Boolean answer. So, if you're right, then obviously the transaction goes through. If you're not,
1024420	1029940	then it doesn't. So, that's what makes elliptical curves so difficult to break.
1031180	1038200	So, what I think makes blockchain so secure is the public key infrastructure and the
1038200	1044120	Merkle tree hashing aspect. So, with public key infrastructure, you get your transaction
1044120	1050000	verification. So, that was the verification where you get that Boolean answer with the elliptical
1050000	1056020	curve. And then with the Merkle tree, you can validate it because the hashes are constantly
1056020	1063920	changing as blocks are changing. So, what have we talked about so far? I talked about
1064720	1071780	electronic hash and how it was made for privacy. I talked about five different algorithms,
1071780	1079460	the SHA-256, RIPEMD-160 hash cache, Merkle tree, and the elliptical curve. Now I'm going to talk
1079460	1085620	about some post-quantum cryptography, things that we could probably end up using in the future or
1085620	1092820	stuff that's being researched right now. So, what can break it all is cryptanalysis.
1094700	1101860	Part of that is quantum machines and quantum algorithms for the quantum cryptanalysis.
1103660	1113180	So, just to review, if they were to break symmetric cryptography, they'd have to break
1113180	1122420	something like one of those four. Or with the asymmetric, the elliptical curve cryptography.
1125090	1131570	So, with the symmetric, there's this theory that Grover's algorithm could possibly
1132410	1138850	speed things up and break symmetric. That's being researched. I don't know if it's actually been
1138850	1144150	implemented as software on an actual quantum computer. I don't have that kind of knowledge.
1144150	1152610	But this, as far as I'm concerned, is still theory. But the way Grover's algorithm works
1153470	1160170	is that it runs, like, an unstructured search through, like, several threads
1161050	1169150	or parallel universes, as they'd say in quantum. So, quantum's kind of like, yes and no at the
1169150	1176830	same time. Whatever. It's just, like, a lot of different things going on at the same time.
1177350	1182730	And with Grover's algorithm, if they could possibly actually implement that into software,
1183890	1189590	you could take the number of steps that it would normally take to break something asymmetric and
1189590	1195710	square root it. So, instead of a million steps, it would be, like, a thousand steps. So,
1195710	1203330	theoretically, that's how it's supposed to work. With asymmetric, we've got Shor's algorithm.
1207270	1213630	So, the way asymmetric works is that you've got this really huge number, and then you want to
1213630	1219070	factor it down to prime numbers. So, if you can factor a whole bunch of these numbers down to
1219070	1225990	prime numbers, then multiply them, then you'll have that large number. So,
1227250	1232850	did that make sense? Okay. So, how does this work?
1237110	1241970	Well, you know, with cryptanalysis, a lot of times it's just a lot of random guesses, and then you
1241970	1247670	just kind of, like, narrow it down. So, this is kind of the same thing, but it moves a lot faster
1247670	1254590	because it works with a lot of different algorithms that just make it run faster. At the
1254590	1260410	low level, it's some pretty intense stuff. If you want to look that up, it's pretty interesting,
1260410	1271650	actually. So, asymmetric algorithms are the ones that are at the highest risk of being broken,
1272100	1278760	according to theorists these days. So, the one that would be at the highest risk of being broken
1278760	1285460	would be our elliptical curve cryptography that creates our public key, private key,
1286360	1295060	digital signatures on our transaction hashes, and verification. So,
1297820	1302480	Bitcoin Core is, like, it's on GitHub. It can always be upgraded. People can always send
1302480	1309980	suggestions. So, if you have any, you can send it to them. But some ideas, maybe, are to replace
1309980	1317400	PKI if you're not going to use asymmetric. You wouldn't have any public or private keys.
1318200	1329020	No authentication with digital signatures. So, there's three of them that I'm going to talk
1329020	1333480	about that are, like, at the top of the list, because there's a contest for people trying to
1333480	1336980	come up with newer things, and obviously being implemented in other blockchains.
1337560	1347800	So, you'd need a stronger asymmetric alternative than the ECDSA. So, here are three. The
1348620	1357540	super-singular isogenic key exchange, lattice-based cryptography, and McAleese.
1360220	1369320	So, this is supercalifragilisticexpialidocious. It's also a key exchange. It's based off of
1369320	1376060	Diffie-Hellman. So, it's kind of like ECDSA, but on steroids. This works with super-singular
1376760	1382100	elliptical curves. So, so far, we looked at singular elliptical curves. That is
1383020	1387840	one geometric fiber. Super-singular has many.
1389920	1396100	So, there's just a lot more functions involved, obviously, because each one has their own
1396100	1403360	functions, or, like, multiple ones. So, they call those endomorphism rings. And so, the more you
1403360	1411240	bring together, the more, I guess, it's called an algebraic group. And it just has to be finite.
1411240	1419020	And that's called isogeny. I might be botching that up. Okay. So, the second one I wanted to
1419020	1424390	talk about is lattice-based cryptography. And there's many different kinds of the lattice-based.
1425060	1432940	It's based off of matrices. So, you'll have this large graph with all these different points on it.
1434340	1439840	Learning with error, that's a method of cryptanalysis, but that's also one of the
1440460	1448180	methods that it can be broken. If you have a, like, a number that's really close to the random
1448180	1453340	number. But again, all the low-level details, they're a lot easier to understand if you just
1453340	1470460	read them on the internet. Okay. So, to crack Alice and Bob's super secret with lattice,
1471400	1477960	got the Cheshire Cat over there trying to crack it. So, here's a few different, like,
1477960	1484860	kinds of problems that a cryptanalyst would have to solve to break it. And hence, there's
1484860	1490180	different kinds of lattice-based cryptography. So, you could crack a random number with a vector
1490180	1495860	that's close to it, as I mentioned before, with the learning for... what's it called?
1495960	1501860	Learning with error. Finding the smallest vector. And these are just looking for the points. And
1501860	1510420	then finding the shortest distance between the vectors. Okay. So, this is the third one,
1510420	1515960	and this is, like, probably the most difficult one to implement with
1516660	1523040	what most of us have these days. So, it's said to be immune to Shor's algorithm.
1524460	1532200	And it also works on the public key system. So, Cheshire Cat fights for Alice and Bob's secret
1532200	1537020	with brute force and most likely techniques. Because that's pretty much all they've got for
1537020	1546360	that. It needs optimal resources. Because the public key is 512 kilobits long. We talked about
1546360	1554920	256 bit. This is 512 kilobits long. And the data rate is 50% less than most of the other ones. So,
1554920	1560460	you'd need really good technology to implement that. Maybe something that won't need to run so
1560460	1570240	fast. And that's all I've got for the three. So, I have contact information for my LinkedIn.
1570660	1577340	And if you have your own cryptographic algorithm that you want to provide, there's a website down
1577340	1582020	there where they show all the different... it says round two submissions. So, people are just
1582020	1590910	submitting different things for this project on this.gov. I will try my best to answer questions.
1590910	1618650	Does anybody have any? Was I that confusing? Yes? It would have... yeah, yeah, obviously. Yeah,
1618650	1624210	that would be a change in code. There would have to be... yeah. Because people would... I mean,
1624210	1627750	people that are currently using public and private keys, they wouldn't be able to access
1627750	1632830	anything if they've had a lot of transactions. But if you have something stored and you haven't
1632830	1638290	made a transaction at all with it, if it's just sitting at an address, you can still get to it,
1638290	1658800	even after that change is implemented. Yes? Honestly, like, yeah. So, these are all theories.
1658800	1664000	None of them have really been implemented. I think there's like... it's now like $14 billion
1665200	1670560	in the pot. These people that have the quantum computers, they have a lot more money than that.
1670560	1675300	I don't think they care. Unless they just want to break the system.
1686560	1692260	It's... yeah, possibly in 10 or 20 years could be susceptible. Yeah. Depending on
1692260	1709380	how fast the technology moves. Exactly. That's what I was saying. It's safe.
1709520	1715280	Yeah. That's why it's safe if you just leave it there. If you don't... yeah, yeah.
1717720	1720180	That's the safest practice. Yeah.
1732710	1737850	Yeah. Essentially, if you don't do... yeah, if you don't do another transaction. Yeah.
1738070	1742370	That's why I think it's just so genius. Just these five algorithms brought together.
1773040	1782320	Do you think so?
1790370	1795010	I mean, honestly, I think like 10 or 20 years. I don't see it anytime soon. I don't
1796290	1797990	see anything like that breaking.
1800070	1804250	But I'm not a huge expert on that. I don't have that computer. I've never used it.
1804250	1813370	I don't know. This is all theory. And pretty interesting to me. Any other questions?
1823360	1830700	So the theory out there is that it's easier to crack than symmetric. Symmetric is a lot harder.
1832780	1835140	Oh, sorry. So he's saying...
1836840	1840920	I asked if asymmetric computing is harder to crack than symmetric.
1841320	1846140	It's the opposite. Yeah. Yeah. That's why we were talking about the elliptical
1846140	1874260	curve and what they're coming up with. I can barely hear you. Sorry.
1882230	1883350	Anything else?
