start	end	text
0	2500	Welcome, everybody. My name is Mark Nesbitt.
2540	7200	We've had a schedule issue where we've lost our next speaker.
7200	12140	So I was asked to come up here and give a talk that I happen to have ready.
12140	17420	So I'm going to explain to you my take on the question, what is Bitcoin?
19440	22280	Before I begin, I'm going to tell you a little bit about myself again.
22280	23200	My name is Mark Nesbitt.
23200	25900	I'm an application security engineer at Coinbase.
26100	29600	The application security team is focused on securing our code base.
29600	31860	We provide engineering support.
32360	35220	And my specific role supports the crypto engineering teams.
35220	38300	So that supports our wallet infrastructure, our node infrastructure.
38300	42280	And I also spend a lot of time and effort reviewing and providing
42280	44640	risk mitigations for different new cryptocurrencies
44640	46980	that we're going to support on our platform.
47280	50260	This talk is geared towards non-technical audiences
50840	54500	about how to think about Bitcoin and will introduce fundamental concepts
54500	57720	about Bitcoin and how it works, and by extension, other cryptocurrencies.
57720	59000	But I'll focus on Bitcoin.
59000	61200	Happy to take any questions at the end.
62820	65060	So the question, what is Bitcoin?
65340	69100	I'm going to provide a definition upfront and we'll spend the rest of the time
69100	73120	unpacking that definition and making sure we understand the parts of it.
73660	78320	Bitcoin is a protocol for producing a unique permissionless transaction history.
79320	80880	So we're going to break it down.
80880	82380	Bitcoin is a protocol.
82380	83980	There's one component.
84280	86980	It produces a transaction history.
86980	88420	We'll talk about what that means.
88420	91420	And the characteristics of this transaction history are that it's unique
91420	92720	and permissionless.
93380	95260	I like to diagram sentences.
95260	96300	It helps me understand them.
96300	97440	So we'll start here.
97440	98760	Bitcoin is a protocol.
99940	101180	What is a protocol?
101180	102360	Protocols exist everywhere.
102360	104500	A protocol is nothing more than a procedure.
104940	108600	When it comes to computers, a protocol can be thought of as a language
108600	110960	spoken by computers participating in the protocol.
110960	114860	But you can think about protocols as existing outside of computers as well.
114860	117080	When you drive on the roads, you're following the U.S.
117080	117880	laws of driving.
117880	118660	That's a protocol.
118660	121680	You yield if you're turning left to oncoming traffic.
121680	126080	Those sorts of rules are all part of the driving protocol in the United States.
126820	128520	Bitcoin is an open protocol.
128520	130120	That means everyone knows the protocol.
130120	130800	It's not hidden.
130800	132400	The code is open source.
132560	134660	Multiple implementations of this protocol exist.
134660	138300	So many people have written code that conforms with this protocol.
138400	141360	And anyone can create their own implementation because of that.
142480	144120	OK, so Bitcoin is a protocol.
144120	144640	Simple enough.
144640	145320	Set of rules.
145320	146220	It's a system.
146460	147520	What does a protocol do?
147880	150440	It produces a transaction history.
150780	152720	We'll talk about what that means.
153020	154880	Transaction histories also exist everywhere.
154880	156620	You're also familiar with this concept.
156620	159080	Your bank account has a personal transaction history.
159080	161660	The transactions you individually have done.
162020	165520	PayPal maintains a transaction history for all of its customers.
165520	166560	You can think of your own.
166560	169800	It's just a filtered version of this master transaction history.
170760	174300	A payment system's transaction history will define all the account
174300	176680	balances on that system.
177880	180920	It's also worth noting there's an infinite number of possible
180920	184320	transaction histories in any particular system.
184420	188000	There's also a need to enforce the validity rule.
188000	192180	So you can think about there being two classes of possible transaction
192180	197560	histories, one that is valid and that's within a much larger set that's invalid.
197860	202000	But think about the need to distinguish between validity and then to think
202000	206760	about the need to distinguish between, sorry, let me correct what I said.
206760	209840	Think about the need to distinguish between a valid and an invalid transaction
209840	214440	history, and then also the need to distinguish between valid histories.
214440	218200	So an example of an invalid transaction history would be someone sends a
218200	219700	transaction where they don't have the funds.
219700	222160	That's clearly invalid.
222160	226120	But with invalid transaction histories, there's an infinite number of possible
226120	232000	histories that could have been the history that we have of transactions, but aren't.
232000	235020	So there has to be one, but there's an infinite number of possibilities.
235020	236120	And we're going to talk more about that.
236940	239700	So just think about a transaction history, a history of people
239700	242160	sending A to B, this much value.
242400	245880	Now we're going to talk about the fact that this is a unique and
245880	247780	permissionless transaction history.
248000	250000	This is where things get interesting.
250360	252700	It's worth noting though, these two characteristics, neither of
252700	254560	them are very special on their own.
255140	257160	Remember I said there's an infinite number of transaction
257160	259660	histories within any system.
260100	263760	Therefore, uniqueness is a requirement for anyone that's going to function.
263980	266740	For instance, PayPal has a unique transaction history.
266760	268040	They've defined it.
268040	269320	They're the arbiters.
269460	272700	If you didn't have a uniqueness, this uniqueness characteristic, double
272700	275640	spends would be possible because I could present one transaction history
275640	279560	to you where I paid you and another to someone else where I paid them
279560	284320	with the same funds and I was able to get two things for the same money.
284780	287940	So uniqueness isn't all that special on its own.
288440	290620	Permissionless is a little more interesting.
290740	294520	Permissionless transaction histories exist anytime that a transaction system
294520	296000	doesn't have a controlling authority.
298020	301320	Certain physical transaction systems such as gold or precious items
301320	303640	actually fit this description.
303820	308560	Uniqueness, if it's physical, it only exists in one place at any given time.
308560	312640	You can't create multiple transaction histories when you're dealing with
312640	314580	passing around physical objects.
314660	318100	Permissionless, if you physically possess an item, it's difficult to
318100	319860	prevent you from transferring it.
319860	322880	Perhaps it could be made illegal, but there is no central authority
322880	324300	that controls the system.
325920	328620	Bitcoin accomplishes this digitally.
328660	331960	Many people call Bitcoin digital gold, and this is why.
334750	337390	We're going to talk about how this is possible.
337390	341890	This is the part that introduces a few technical concepts so you can
341890	347610	understand why Bitcoin is able to accomplish this system of being a
347610	350230	unique permissionless transaction history.
350230	354550	The uniqueness is accomplished through a system of proof of work, also called
354550	359210	mining. The permissionless nature is derived from Bitcoin's use of
359210	360710	public-key cryptography.
360750	363050	We're going to start with the permissionless nature and cover
363050	364870	public-key cryptography first.
368570	373530	Public-key cryptography revolves around having two secret numbers called a
373530	377410	key pair. One is a private key and one is a public key.
377410	381230	You derive the public key from the private key, and you cannot derive the
381230	382650	private key from the public key.
383970	388550	You can think about an account number in Bitcoin is when Bitcoins are assigned to
388690	392950	a public key. The corresponding private key to that account will allow you to
392950	395090	authorize sends from it.
395390	399730	Remember, the private key is derived first from randomness, and then you take
399730	402310	that number and you can derive a public key.
402310	405590	And once you have the public key, you cannot re-derive the private key.
405590	409110	So you can take this public key and spread it everywhere and use it as your
409110	412630	account number and say, hey, send Bitcoins here if you want to pay me, and
412630	417330	as many people as there are who want to pay you can do that, and then you can use
417330	420810	that private key as many times as you want to send those payments along to
420810	424590	wherever you want to without compromising anything about that private key.
426210	429590	So this slide summarizes what I just said.
429590	432890	The transaction is assignment of Bitcoins to a new public key, and you have to
432890	436330	authorize that with the use of the private key of the previously assigned
436330	440070	address. This authorization is called a digital signature, and it doesn't reveal
440070	443110	the value of the private key, so you can do it repeatedly.
444170	446990	Let's imagine a visualization of a transaction here.
446990	450710	Suppose there are some Bitcoins that are assigned to Alice's public key.
450750	454270	That's just a more complicated way of saying Alice has Bitcoins.
454270	457190	But let's think about it this way as them being assigned to her public key.
457190	458930	She wants to pay Bob for something.
458990	462190	What she's going to do is form a transaction where she says, here's my public
462190	467230	key, here's how many Bitcoins I want to send to Bob, and here's Bob's public key.
467230	471390	And then what she'll do is she will sign it with the private key associated with
471390	474650	the orange box, the public key that she has.
474750	478850	And that, we can think of that as the transaction, as the authorization of
478850	481770	payment transfer. Bob could do the same.
481770	483050	He could pass it along to Carol.
483050	485330	He has a public key that has a private key.
485510	488430	Carol provides her public key to Bob, and he'll do the same thing.
488430	492070	Sign it with his private key, and that's authorizing a transaction.
494190	498950	To map it a little bit more to exactly how it works with Bitcoin, suppose Alice has 50
498950	500490	Bitcoin in a public key.
500970	506450	She'll create outputs in a transaction, maybe one Bitcoin to Bob, and 49 as change
506450	510450	to another public key, to her own public key, to the original public key, wherever
510450	514670	she wants. And she will sign it with her private key.
515390	521910	And likewise, she can spend that 49 change as one to Carol, and 48 back change to
521910	526710	herself. And Bob can split his up 50-50, back to Carol, back to himself.
526710	530550	And you notice, as they sign, the balances on the right, we can consider those to
530550	534890	change for the time being, when they authorize it with their digital signatures.
536170	539430	And the Bitcoin ledger is the result of all the transactions.
539770	545310	Now, remember, the point of this segment here is about the permissionless nature of
545310	546730	this transaction history.
546730	551130	Bitcoin is a protocol for producing a unique permissionless transaction history.
551130	552610	Why is it permissionless?
552610	554670	Because of public key cryptography.
554710	557930	No one can stop you from creating and using your keys.
557930	561870	Your private key is nothing more than a long number that you created on your own
561870	564450	randomly. And the public key derives from it.
564450	566330	You don't need to go get an account number.
566330	567870	You don't need to sign up anywhere.
567910	570090	This is the permissionless nature of Bitcoin.
573260	576980	Remember, I said that the transaction history created by the Bitcoin protocol is
576980	578160	unique and permissionless.
578160	582280	So now let's turn to the unique nature that comes from proof of work.
582280	584300	The system that secures the network.
584600	591530	It's called mining. In order for this transaction history to be functional, everyone
591530	593830	must agree on a single history.
594390	597770	The validity rules of that history, like I talked about before, sending money that
597770	600610	doesn't exist, can be defined as part of the protocol.
600610	604510	As computers that are talking along this protocol, communicating with each other, they
604510	610090	won't accept transactions that don't meet these validity rules.
610730	615010	But the complicated thing is that there are an infinite number of valid histories.
615110	616290	I could send you money.
616290	618730	You could send it back to me. We could do that for as many times as we want.
618730	622310	I could have sent it to another person over here and both of those would have been
622310	625710	valid. They couldn't have been valid together, but on their own, they might have
625710	629190	been. So that's why we need to achieve this uniqueness property.
631130	634230	This history can't come from a central authority without the loss of the
634230	635830	permissionless component in the system.
635830	639030	When it comes to PayPal, it's unique because PayPal says it's unique.
639030	639910	Same with your bank.
640750	643990	How can we do something permissionless?
645050	650670	The way this is done is by bundling transactions into batches called blocks.
650730	654130	The transactions contained in the series of blocks, which is known as the
654130	656770	blockchain, defines the canonical history.
656770	660290	So we could think of this data structure down here where there's a transaction
660290	664590	that we recognize from before, authorized by Alice's private key, which is stored
664590	667810	in this block. And we chain these blocks together in batches.
670450	673110	But we still kind of have the same problem.
673190	674690	Many different blocks are possible.
674690	677410	How do we agree on the unique transaction history?
677410	683290	For instance, what if someone came in and modified the history?
684330	686530	Dan says he wants this Bitcoin.
686610	690570	How are we supposed to distinguish between the transaction history where this was
690570	694170	sent to Dan versus the transaction where it was sent to Bob?
696230	699110	The way we're going to be able to do this is with proof of work.
699110	703890	And that means we're going to make valid blocks difficult to produce.
703990	707430	It seems like it doesn't really solve the problem, but it does.
707430	711790	If valid blocks are difficult to produce, we can introduce a new rule that says the
711790	715970	longest series of blocks is the transaction history, the unique transaction
715970	718330	history. Now we have a length.
718330	722850	We have a something that can be well ordered and we pick the longest one.
723690	727630	That is going to make a unique history that is very difficult to change.
728490	732270	We're going to talk about what makes blocks difficult to produce.
733270	739610	This is because Bitcoin uses a cryptographic function known as a hash function.
739710	744210	A hash function, this is just an example here for illustrative purposes, but it has
744210	746770	these characteristics listed at the bottom.
746770	749070	The output does not resemble the input.
749070	752010	Notice how the first two are very similar.
752010	754870	There's just a one instead of a zero in that final digits place.
754870	757050	And the output of the first two are entirely different.
757850	760690	The second characteristic, the output is deterministic.
760690	763770	Every time you run the hash function on the same input, you always get the same
763770	768650	output. The smallest input change completely changes the output.
768690	770990	The first two illustrate that point as well.
771990	777010	It can ingest any amount of data and any kind of data, so it can ingest a string.
777010	781810	Anything that you can represent, the hash function will operate on and it cannot be
781810	786930	reversed. Once you have the numbers on the right, you're never going to know which
786930	788770	numbers on the left produce them.
791890	797310	So imagine we had a situation where you're looking to get a specific type of output
797310	800070	from the hash function. And we had our data.
800070	803510	And then we use this wildcard where we iterate through different numbers multiple
803510	805270	times and we hash it each time.
805270	808970	We're going to get completely different results every time because the outputs are
808970	811770	completely unpredictable. It's essentially like a random number generator.
811790	815970	And eventually we're going to get an output that, for instance, might have a large
815970	817350	number of leading zeros.
818070	823590	If you see something like that and someone provides you a data and wildcard five and
823590	826390	you can do the hash function, the hash function is open source.
826390	829630	It's deterministic. So you will get the same output with all those leading number of
829630	833830	zeros. The only logical thing to conclude is they must have tried a large number of
833830	837050	wildcards before they could get this leading number of zeros.
837650	842190	If someone wants to prove that they worked hard to find the wildcard, that's easy to
842190	844870	do. It's easy for me to verify that.
844870	847110	I don't have to check all of the wildcards that they did.
847110	849650	I only have to check the one that they claim is the solution.
852620	855360	It's proof that they did a lot of work.
858630	864390	You can also chain hash functions together by using the output of one in the input of
864390	868810	another. So in this case, we hash data one and we get some output.
868810	872530	And if we concatenate it with another set of data, we'll get a different output and we
872530	874310	can continue this in a chain.
874930	880410	And we call this a chain because the links are bound inextricably to one another because
880410	882370	of the properties of the hash function.
882390	887250	If we change data one, it will change the output of data one, which means it'll change
887250	889270	the input to the second hash function.
889270	894290	It'll change the output and all of the chain is broken when just a little bit of data
894290	900650	gets changed. Now, let's combine these two concepts of proof of work and finding a
900650	904970	wildcard with chaining together hash functions.
904970	908590	In the case of data one, we have a large number of leading zeros on the output, so we
908590	911170	can be confident that someone did a lot of work to create that.
911170	915690	If we use that as the input to the second hash function, we can still create this
915690	921910	chain. But in this case, we know that a lot of work was put into creating this chain.
922770	928530	It means that it's hard to change a block that maybe is only one or two away from the
928530	932810	most recent, and it makes it nearly impossible to change a block once it gets buried
932810	937530	deep enough in this repeated iteration of work and hash chaining.
939790	943930	So the way it works with Bitcoin is you bundle transactions.
943930	947310	Remember, transactions are someone authorizing a payment from one public key to
947310	948910	another with their digital signature.
948910	955710	We bundle those into a data structure called a block, and then we iterate through a
955710	964290	wildcard. And then eventually, we're going to discover a wildcard where the hash of
964290	968890	all the block information along with the wildcard is underneath a certain difficulty
968890	974210	threshold. It's only going to be a valid block if it is underneath this threshold.
974690	980070	And then we can say that we have mined that block and the miner can share it with the
980070	983430	rest of the network. The rest of the network has all the other blocks already.
983430	987270	They can verify that this chains to the most recent block.
987270	992210	They can verify that it's underneath the required difficulty, which is a parameter
992210	996470	that's calculated from the other blocks, and thereby the network can accept that this
996470	1001050	block extends the chain and adds to the canonical transaction history.
1003830	1006410	So we're trying to get uniqueness.
1006410	1007850	How can we get uniqueness?
1007850	1012550	We do it by making valid blocks difficult to produce and then adding a rule that the
1012550	1016790	longest series of blocks is this transaction history, the unique one.
1016790	1021130	And because of the proof of work mechanism, that makes it very difficult to change this
1021130	1022430	history of transactions.
1022430	1027370	So anyone transacting in this system can be confident that if they received a transaction
1027810	1031490	that is in the canonical history and it will be there when they look again.
1034210	1038850	So to recap, the two key characteristics that I want to leave you with about the Bitcoin
1038850	1045390	network is the uniqueness and permissionless nature of its transaction history.
1047550	1052870	So again, Bitcoin is a protocol for producing a unique and permissionless transaction
1052870	1059190	history. I'm going to leave with a little bit of why I think this is interesting.
1059950	1062350	Sounds kind of boring when I put it this way.
1063470	1069430	I like to think of Bitcoin as kind of like a virus, maybe a strange way to describe it.
1069430	1073430	It sounds like a criticism or an insult, but it's not.
1073650	1080530	It means that it is a system that has escaped the lab and is continuing to move under the
1080530	1082050	incentive structure that it's creating.
1082050	1087290	The same way a virus can propagate, this transaction history is valuable to people.
1087290	1092750	People find it desirable to be able to interact with a unique permissionless transaction
1092750	1097810	history. And the incentives of the system cause people to mine more blocks and cause
1097810	1101570	that transaction history to continue to extend itself.
1101750	1107370	I like to think about Bitcoin as being similar to the printing press in the same way that
1107370	1112630	ideas were controlled by the halls of power of the people who were educated before the
1112630	1117630	printing press came along and the printing press democratized the ability to access
1117630	1119150	literature and writing.
1119750	1124170	Hopefully, Bitcoin will do the same for money because you don't need to go through
1124170	1126870	intermediaries. You don't have to sign up for account.
1126870	1133610	The permissionless, unique transaction history will democratize finance for many people
1133610	1134590	in the future.
1134590	1136570	Thank you.
1136570	1137650	That concludes my talk.
1137650	1138950	Does anyone have any questions?
1144790	1147210	Anyone? Is that one?
1149170	1161780	Yeah, go ahead. No worries.
1161780	1162360	Yeah.
1162560	1175100	Well, for one, on your retail log, yeah, yeah, they don't teach sentence diagramming in
1175100	1176960	school anymore. So I kind of made that one up.
1177260	1178900	It works for me.
1178900	1179320	Yeah.
1184420	1185900	OK, well, I'll be around.
1185900	1189980	If anyone wants to come talk to me, anyone else with a question?
1193860	1195280	I mentioned proof of work.
1195280	1195760	Yes.
1198530	1199690	What's that?
1201790	1207270	Yeah, so other consensus mechanisms work differently.
1207270	1212690	So the part here about this longest series of blocks being the transaction history is
1212690	1217430	sort of it's this rule that was added once we decided we were going to make valid blocks
1217430	1220970	difficult to produce. And that's sort of how the consensus mechanism works.
1221450	1223710	But there can be other ways of achieving consensus.
1224170	1229030	And a lot of more recent cryptocurrencies are experimenting with ways to do this.
1229950	1233910	When I say blocks are difficult to produce, they're very difficult to produce.
1234450	1235810	Mining is very energy intensive.
1235810	1238590	That's something a lot of people have been able to read about in the media.
1238590	1240050	It's something that gets covered a lot.
1240050	1241630	So there are downsides to this.
1241630	1249430	And a lot of people are working on potential alternatives to this type of situation.
1249550	1254330	And the hope is that they can produce a unique permissionless transaction history in a
1254330	1258570	different way. Right now, this is the one that's operational and working, and it's been
1258570	1263660	working very well for Bitcoin.
1263660	1267000	All right. Well, I'll be around if anyone wants to ask any other questions.
1267000	1267780	Thank you for your attention.
