WEBVTT

00:00.000 --> 00:01.120
Welcome, everybody.

00:01.120 --> 00:02.500
My name is Mark Nesbitt.

00:02.540 --> 00:07.200
We've had a schedule issue where we've lost our next speaker.

00:07.200 --> 00:12.140
So I was asked to come up here and give a talk that I happen to have ready.

00:12.140 --> 00:17.420
So I'm going to explain to you my take on the question, what is Bitcoin?

00:19.440 --> 00:22.280
Before I begin, I'm going to tell you a little bit about myself again.

00:22.280 --> 00:23.200
My name is Mark Nesbitt.

00:23.200 --> 00:25.900
I'm an application security engineer at Coinbase.

00:26.100 --> 00:29.600
The application security team is focused on securing our code base.

00:29.600 --> 00:31.860
We provide engineering support.

00:32.360 --> 00:35.220
And my specific role supports the crypto engineering teams.

00:35.220 --> 00:38.300
So that supports our wallet infrastructure, our node infrastructure.

00:38.300 --> 00:46.980
And I also spend a lot of time and effort reviewing and providing risk mitigations for different new cryptocurrencies that we're going to support on our platform.

00:47.280 --> 00:57.720
This talk is geared towards non-technical audiences about how to think about Bitcoin and will introduce fundamental concepts about Bitcoin and how it works, and by extension, other cryptocurrencies.

00:57.720 --> 00:59.000
But I'll focus on Bitcoin.

00:59.000 --> 01:01.200
Happy to take any questions at the end.

01:02.820 --> 01:05.060
So the question, what is Bitcoin?

01:05.340 --> 01:13.120
I'm going to provide a definition upfront and we'll spend the rest of the time unpacking that definition and making sure we understand the parts of it.

01:13.660 --> 01:18.320
Bitcoin is a protocol for producing a unique permissionless transaction history.

01:19.320 --> 01:20.880
So we're going to break it down.

01:20.880 --> 01:22.380
Bitcoin is a protocol.

01:22.380 --> 01:23.980
There's one component.

01:24.280 --> 01:26.980
It produces a transaction history.

01:26.980 --> 01:28.420
We'll talk about what that means.

01:28.420 --> 01:32.720
And the characteristics of this transaction history are that it's unique and permissionless.

01:33.380 --> 01:35.260
I like to diagram sentences.

01:35.260 --> 01:36.300
It helps me understand them.

01:36.300 --> 01:37.440
So we'll start here.

01:37.440 --> 01:38.760
Bitcoin is a protocol.

01:39.940 --> 01:41.180
What is a protocol?

01:41.180 --> 01:42.360
Protocols exist everywhere.

01:42.360 --> 01:44.500
A protocol is nothing more than a procedure.

01:44.940 --> 01:50.960
When it comes to computers, a protocol can be thought of as a language spoken by computers participating in the protocol.

01:50.960 --> 01:54.860
But you can think about protocols as existing outside of computers as well.

01:54.860 --> 01:57.080
When you drive on the roads, you're following the U.S.

01:57.080 --> 01:57.880
laws of driving.

01:57.880 --> 01:58.660
That's a protocol.

01:58.660 --> 02:01.680
You yield if you're turning left to oncoming traffic.

02:01.680 --> 02:06.080
Those sorts of rules are all part of the driving protocol in the United States.

02:06.820 --> 02:08.520
Bitcoin is an open protocol.

02:08.520 --> 02:10.120
That means everyone knows the protocol.

02:10.120 --> 02:10.800
It's not hidden.

02:10.800 --> 02:12.400
The code is open source.

02:12.560 --> 02:14.660
Multiple implementations of this protocol exist.

02:14.660 --> 02:18.300
So many people have written code that conforms with this protocol.

02:18.400 --> 02:21.360
And anyone can create their own implementation because of that.

02:22.480 --> 02:24.120
OK, so Bitcoin is a protocol.

02:24.120 --> 02:24.640
Simple enough.

02:24.640 --> 02:25.320
Set of rules.

02:25.320 --> 02:26.220
It's a system.

02:26.460 --> 02:27.520
What does a protocol do?

02:27.880 --> 02:30.440
It produces a transaction history.

02:30.780 --> 02:32.720
We'll talk about what that means.

02:33.020 --> 02:34.880
Transaction histories also exist everywhere.

02:34.880 --> 02:36.620
You're also familiar with this concept.

02:36.620 --> 02:39.080
Your bank account has a personal transaction history.

02:39.080 --> 02:41.660
The transactions you individually have done.

02:42.020 --> 02:45.520
PayPal maintains a transaction history for all of its customers.

02:45.520 --> 02:46.560
You can think of your own.

02:46.560 --> 02:49.800
It's just a filtered version of this master transaction history.

02:50.760 --> 02:56.680
A payment system's transaction history will define all the account balances on that system.

02:57.880 --> 03:04.320
It's also worth noting there's an infinite number of possible transaction histories in any particular system.

03:04.420 --> 03:08.000
There's also a need to enforce the validity rule.

03:08.000 --> 03:17.560
So you can think about there being two classes of possible transaction histories, one that is valid and that's within a much larger set that's invalid.

03:17.860 --> 03:26.760
But think about the need to distinguish between validity and then to think about the need to distinguish between, sorry, let me correct what I said.

03:26.760 --> 03:34.440
Think about the need to distinguish between a valid and an invalid transaction history, and then also the need to distinguish between valid histories.

03:34.440 --> 03:39.380
So an example of an invalid transaction history would be someone sends a transaction where they don't have the funds.

03:39.380 --> 03:40.820
That's clearly invalid.

03:40.980 --> 03:51.800
But with invalid transaction histories, there's an infinite number of possible histories that could have been the history that we have of transactions, but aren't.

03:51.800 --> 03:54.740
So there has to be one, but there's an infinite number of possibilities.

03:54.740 --> 03:56.120
And we're going to talk more about that.

03:56.940 --> 04:02.160
So just think about a transaction history, a history of people sending A to B, this much value.

04:02.400 --> 04:07.780
Now we're going to talk about the fact that this is a unique and permissionless transaction history.

04:08.000 --> 04:10.000
This is where things get interesting.

04:10.360 --> 04:14.560
It's worth noting though, these two characteristics, neither of them are very special on their own.

04:15.140 --> 04:19.660
Remember I said there's an infinite number of transaction histories within any system.

04:20.100 --> 04:23.760
Therefore, uniqueness is a requirement for anyone that's going to function.

04:23.980 --> 04:26.740
For instance, PayPal has a unique transaction history.

04:26.760 --> 04:28.040
They've defined it.

04:28.040 --> 04:29.320
They're the arbiters.

04:29.460 --> 04:44.320
If you didn't have a uniqueness, this uniqueness characteristic, double spends would be possible because I could present one transaction history to you where I paid you and another to someone else where I paid them with the same funds and I was able to get two things for the same money.

04:44.780 --> 04:47.940
So uniqueness isn't all that special on its own.

04:48.440 --> 04:50.620
Permissionless is a little more interesting.

04:50.740 --> 04:56.000
Permissionless transaction histories exist anytime that a transaction system doesn't have a controlling authority.

04:58.020 --> 05:03.640
Certain physical transaction systems such as gold or precious items actually fit this description.

05:03.820 --> 05:08.560
Uniqueness, if it's physical, it only exists in one place at any given time.

05:08.560 --> 05:14.580
You can't create multiple transaction histories when you're dealing with passing around physical objects.

05:14.660 --> 05:19.860
Permissionless, if you physically possess an item, it's difficult to prevent you from transferring it.

05:19.860 --> 05:24.300
Perhaps it could be made illegal, but there is no central authority that controls the system.

05:25.920 --> 05:28.620
Bitcoin accomplishes this digitally.

05:28.660 --> 05:31.960
Many people call Bitcoin digital gold, and this is why.

05:34.750 --> 05:37.390
We're going to talk about how this is possible.

05:37.390 --> 05:49.630
This is the part that introduces a few technical concepts so you can understand why Bitcoin is able to accomplish this system of being a unique permissionless transaction history.

05:49.970 --> 05:55.430
The uniqueness is accomplished through a system of proof of work, also called mining.

05:55.670 --> 06:00.710
The permissionless nature is derived from Bitcoin's use of public-key cryptography.

06:00.750 --> 06:04.870
We're going to start with the permissionless nature and cover public-key cryptography first.

06:08.570 --> 06:14.290
Public-key cryptography revolves around having two secret numbers called a key pair.

06:14.290 --> 06:17.090
One is a private key and one is a public key.

06:17.090 --> 06:22.650
You derive the public key from the private key, and you cannot derive the private key from the public key.

06:23.970 --> 06:29.670
You can think about an account number in Bitcoin is when Bitcoins are assigned to a public key.

06:29.870 --> 06:35.090
The corresponding private key to that account will allow you to authorize sends from it.

06:35.390 --> 06:42.310
Remember, the private key is derived first from randomness, and then you take that number and you can derive a public key.

06:42.310 --> 06:45.590
And once you have the public key, you cannot re-derive the private key.

06:45.590 --> 07:04.590
So you can take this public key and spread it everywhere and use it as your account number and say, hey, send Bitcoins here if you want to pay me, and as many people as there are who want to pay you can do that, and then you can use that private key as many times as you want to send those payments along to wherever you want to without compromising anything about that private key.

07:06.210 --> 07:09.590
So this slide summarizes what I just said.

07:09.590 --> 07:17.170
The transaction is assignment of Bitcoins to a new public key, and you have to authorize that with the use of the private key of the previously assigned address.

07:17.170 --> 07:23.110
This authorization is called a digital signature, and it doesn't reveal the value of the private key, so you can do it repeatedly.

07:24.170 --> 07:26.990
Let's imagine a visualization of a transaction here.

07:26.990 --> 07:30.710
Suppose there are some Bitcoins that are assigned to Alice's public key.

07:30.750 --> 07:34.270
That's just a more complicated way of saying Alice has Bitcoins.

07:34.270 --> 07:37.190
But let's think about it this way as them being assigned to her public key.

07:37.190 --> 07:38.930
She wants to pay Bob for something.

07:38.990 --> 07:47.230
What she's going to do is form a transaction where she says, here's my public key, here's how many Bitcoins I want to send to Bob, and here's Bob's public key.

07:47.230 --> 07:54.650
And then what she'll do is she will sign it with the private key associated with the orange box, the public key that she has.

07:54.750 --> 07:59.910
And that, we can think of that as the transaction, as the authorization of payment transfer.

08:00.810 --> 08:01.770
Bob could do the same.

08:01.770 --> 08:03.050
He could pass it along to Carol.

08:03.050 --> 08:05.330
He has a public key that has a private key.

08:05.510 --> 08:08.430
Carol provides her public key to Bob, and he'll do the same thing.

08:08.430 --> 08:12.070
Sign it with his private key, and that's authorizing a transaction.

08:14.190 --> 08:20.490
To map it a little bit more to exactly how it works with Bitcoin, suppose Alice has 50 Bitcoin in a public key.

08:20.970 --> 08:31.570
She'll create outputs in a transaction, maybe one Bitcoin to Bob, and 49 as change to another public key, to her own public key, to the original public key, wherever she wants.

08:31.870 --> 08:34.670
And she will sign it with her private key.

08:35.390 --> 08:42.610
And likewise, she can spend that 49 change as one to Carol, and 48 back change to herself.

08:42.610 --> 08:46.710
And Bob can split his up 50-50, back to Carol, back to himself.

08:46.710 --> 08:54.890
And you notice, as they sign, the balances on the right, we can consider those to change for the time being, when they authorize it with their digital signatures.

08:56.170 --> 08:59.430
And the Bitcoin ledger is the result of all the transactions.

08:59.770 --> 09:06.730
Now, remember, the point of this segment here is about the permissionless nature of this transaction history.

09:06.730 --> 09:11.130
Bitcoin is a protocol for producing a unique permissionless transaction history.

09:11.130 --> 09:12.610
Why is it permissionless?

09:12.610 --> 09:14.670
Because of public key cryptography.

09:14.710 --> 09:17.930
No one can stop you from creating and using your keys.

09:17.930 --> 09:22.890
Your private key is nothing more than a long number that you created on your own randomly.

09:22.890 --> 09:24.450
And the public key derives from it.

09:24.450 --> 09:26.330
You don't need to go get an account number.

09:26.330 --> 09:27.870
You don't need to sign up anywhere.

09:27.910 --> 09:30.090
This is the permissionless nature of Bitcoin.

09:33.260 --> 09:38.160
Remember, I said that the transaction history created by the Bitcoin protocol is unique and permissionless.

09:38.160 --> 09:42.280
So now let's turn to the unique nature that comes from proof of work.

09:42.280 --> 09:44.300
The system that secures the network.

09:44.600 --> 09:45.680
It's called mining.

09:48.550 --> 09:53.830
In order for this transaction history to be functional, everyone must agree on a single history.

09:54.390 --> 10:00.610
The validity rules of that history, like I talked about before, sending money that doesn't exist, can be defined as part of the protocol.

10:00.610 --> 10:10.090
As computers that are talking along this protocol, communicating with each other, they won't accept transactions that don't meet these validity rules.

10:10.730 --> 10:15.010
But the complicated thing is that there are an infinite number of valid histories.

10:15.110 --> 10:16.290
I could send you money.

10:16.290 --> 10:17.170
You could send it back to me.

10:17.170 --> 10:18.730
We could do that for as many times as we want.

10:18.730 --> 10:22.950
I could have sent it to another person over here and both of those would have been valid.

10:22.950 --> 10:26.250
They couldn't have been valid together, but on their own, they might have been.

10:26.250 --> 10:29.190
So that's why we need to achieve this uniqueness property.

10:31.130 --> 10:35.830
This history can't come from a central authority without the loss of the permissionless component in the system.

10:35.830 --> 10:39.030
When it comes to PayPal, it's unique because PayPal says it's unique.

10:39.030 --> 10:39.910
Same with your bank.

10:40.750 --> 10:43.990
How can we do something permissionless?

10:45.050 --> 10:50.670
The way this is done is by bundling transactions into batches called blocks.

10:50.730 --> 10:56.770
The transactions contained in the series of blocks, which is known as the blockchain, defines the canonical history.

10:56.770 --> 11:05.490
So we could think of this data structure down here where there's a transaction that we recognize from before, authorized by Alice's private key, which is stored in this block.

11:05.490 --> 11:07.810
And we chain these blocks together in batches.

11:10.450 --> 11:13.110
But we still kind of have the same problem.

11:13.190 --> 11:14.690
Many different blocks are possible.

11:14.690 --> 11:17.410
How do we agree on the unique transaction history?

11:17.410 --> 11:23.290
For instance, what if someone came in and modified the history?

11:24.330 --> 11:26.530
Dan says he wants this Bitcoin.

11:26.610 --> 11:34.170
How are we supposed to distinguish between the transaction history where this was sent to Dan versus the transaction where it was sent to Bob?

11:36.230 --> 11:39.110
The way we're going to be able to do this is with proof of work.

11:39.110 --> 11:43.890
And that means we're going to make valid blocks difficult to produce.

11:43.990 --> 11:47.430
It seems like it doesn't really solve the problem, but it does.

11:47.430 --> 11:57.050
If valid blocks are difficult to produce, we can introduce a new rule that says the longest series of blocks is the transaction history, the unique transaction history.

11:57.130 --> 11:58.330
Now we have a length.

11:58.330 --> 12:02.850
We have a something that can be well ordered and we pick the longest one.

12:03.690 --> 12:07.630
That is going to make a unique history that is very difficult to change.

12:08.490 --> 12:12.270
We're going to talk about what makes blocks difficult to produce.

12:13.270 --> 12:19.610
This is because Bitcoin uses a cryptographic function known as a hash function.

12:19.710 --> 12:26.770
A hash function, this is just an example here for illustrative purposes, but it has these characteristics listed at the bottom.

12:26.770 --> 12:29.070
The output does not resemble the input.

12:29.070 --> 12:32.010
Notice how the first two are very similar.

12:32.010 --> 12:34.870
There's just a one instead of a zero in that final digits place.

12:34.870 --> 12:37.050
And the output of the first two are entirely different.

12:37.850 --> 12:40.690
The second characteristic, the output is deterministic.

12:40.690 --> 12:44.470
Every time you run the hash function on the same input, you always get the same output.

12:45.130 --> 12:48.650
The smallest input change completely changes the output.

12:48.690 --> 12:50.990
The first two illustrate that point as well.

12:51.990 --> 12:57.010
It can ingest any amount of data and any kind of data, so it can ingest a string.

12:57.010 --> 13:02.510
Anything that you can represent, the hash function will operate on and it cannot be reversed.

13:02.510 --> 13:08.770
Once you have the numbers on the right, you're never going to know which numbers on the left produce them.

13:11.890 --> 13:18.690
So imagine we had a situation where you're looking to get a specific type of output from the hash function.

13:18.690 --> 13:20.070
And we had our data.

13:20.070 --> 13:25.270
And then we use this wildcard where we iterate through different numbers multiple times and we hash it each time.

13:25.270 --> 13:29.770
We're going to get completely different results every time because the outputs are completely unpredictable.

13:29.770 --> 13:31.770
It's essentially like a random number generator.

13:31.790 --> 13:37.350
And eventually we're going to get an output that, for instance, might have a large number of leading zeros.

13:38.070 --> 13:46.390
If you see something like that and someone provides you a data and wildcard five and you can do the hash function, the hash function is open source.

13:46.390 --> 13:47.270
It's deterministic.

13:47.270 --> 13:50.190
So you will get the same output with all those leading number of zeros.

13:50.190 --> 13:57.050
The only logical thing to conclude is they must have tried a large number of wildcards before they could get this leading number of zeros.

13:57.650 --> 14:02.590
If someone wants to prove that they worked hard to find the wildcard, that's easy to do.

14:02.590 --> 14:04.870
It's easy for me to verify that.

14:04.870 --> 14:07.110
I don't have to check all of the wildcards that they did.

14:07.110 --> 14:09.650
I only have to check the one that they claim is the solution.

14:12.620 --> 14:15.360
It's proof that they did a lot of work.

14:18.630 --> 14:25.090
You can also chain hash functions together by using the output of one in the input of another.

14:25.650 --> 14:28.810
So in this case, we hash data one and we get some output.

14:28.810 --> 14:34.310
And if we concatenate it with another set of data, we'll get a different output and we can continue this in a chain.

14:34.930 --> 14:42.370
And we call this a chain because the links are bound inextricably to one another because of the properties of the hash function.

14:42.390 --> 14:49.270
If we change data one, it will change the output of data one, which means it'll change the input to the second hash function.

14:49.270 --> 14:55.410
It'll change the output and all of the chain is broken when just a little bit of data gets changed.

14:56.590 --> 15:03.370
Now, let's combine these two concepts of proof of work and finding a wildcard with chaining together hash functions.

15:04.430 --> 15:11.170
In the case of data one, we have a large number of leading zeros on the output, so we can be confident that someone did a lot of work to create that.

15:11.170 --> 15:16.430
If we use that as the input to the second hash function, we can still create this chain.

15:16.430 --> 15:21.910
But in this case, we know that a lot of work was put into creating this chain.

15:22.770 --> 15:37.530
It means that it's hard to change a block that maybe is only one or two away from the most recent, and it makes it nearly impossible to change a block once it gets buried deep enough in this repeated iteration of work and hash chaining.

15:39.790 --> 15:43.930
So the way it works with Bitcoin is you bundle transactions.

15:43.930 --> 15:48.910
Remember, transactions are someone authorizing a payment from one public key to another with their digital signature.

15:48.910 --> 15:56.290
We bundle those into a data structure called a block, and then we iterate through a wildcard .

15:57.070 --> 16:09.950
And then eventually, we're going to discover a wildcard where the hash of all the block information along with the wildcard is underneath a certain difficulty threshold.

16:10.190 --> 16:14.210
It's only going to be a valid block if it is underneath this threshold.

16:14.690 --> 16:20.950
And then we can say that we have mined that block and the miner can share it with the rest of the network.

16:20.950 --> 16:23.430
The rest of the network has all the other blocks already.

16:23.430 --> 16:27.270
They can verify that this chains to the most recent block.

16:27.270 --> 16:41.050
They can verify that it's underneath the required difficulty, which is a parameter that's calculated from the other blocks, and thereby the network can accept that this block extends the chain and adds to the canonical transaction history.

16:43.830 --> 16:46.410
So we're trying to get uniqueness.

16:46.410 --> 16:47.850
How can we get uniqueness?

16:47.850 --> 16:56.790
We do it by making valid blocks difficult to produce and then adding a rule that the longest series of blocks is this transaction history, the unique one.

16:56.790 --> 17:02.430
And because of the proof of work mechanism, that makes it very difficult to change this history of transactions.

17:02.430 --> 17:11.490
So anyone transacting in this system can be confident that if they received a transaction that is in the canonical history and it will be there when they look again.

17:14.210 --> 17:25.390
So to recap, the two key characteristics that I want to leave you with about the Bitcoin network is the uniqueness and permissionless nature of its transaction history.

17:27.550 --> 17:33.750
So again, Bitcoin is a protocol for producing a unique and permissionless transaction history.

17:35.990 --> 17:39.190
I'm going to leave with a little bit of why I think this is interesting.

17:39.950 --> 17:42.350
Sounds kind of boring when I put it this way.

17:43.470 --> 17:49.430
I like to think of Bitcoin as kind of like a virus, maybe a strange way to describe it.

17:49.430 --> 17:53.430
It sounds like a criticism or an insult, but it's not.

17:53.650 --> 18:02.050
It means that it is a system that has escaped the lab and is continuing to move under the incentive structure that it's creating.

18:02.050 --> 18:07.290
The same way a virus can propagate, this transaction history is valuable to people.

18:07.290 --> 18:13.550
People find it desirable to be able to interact with a unique permissionless transaction history.

18:13.550 --> 18:21.570
And the incentives of the system cause people to mine more blocks and cause that transaction history to continue to extend itself.

18:21.750 --> 18:39.150
I like to think about Bitcoin as being similar to the printing press in the same way that ideas were controlled by the halls of power of the people who were educated before the printing press came along and the printing press democratized the ability to access literature and writing.

18:39.750 --> 18:45.230
Hopefully, Bitcoin will do the same for money because you don't need to go through intermediaries.

18:45.230 --> 18:46.870
You don't have to sign up for account.

18:46.870 --> 18:54.590
The permissionless, unique transaction history will democratize finance for many people in the future.

18:54.590 --> 18:56.570
Thank you.

18:56.570 --> 18:57.650
That concludes my talk.

18:57.650 --> 18:58.950
Does anyone have any questions?

19:04.790 --> 19:05.590
Anyone?

19:06.550 --> 19:07.210
Is that one?

19:09.170 --> 19:10.390
Yeah, go ahead.

19:20.980 --> 19:21.780
No worries.

19:21.780 --> 19:22.360
Yeah.

19:22.560 --> 19:24.820
Well, for one, on your retail log,

19:30.700 --> 19:35.640
yeah, yeah, they don't teach sentence diagramming in school anymore.

19:35.640 --> 19:36.960
So I kind of made that one up.

19:37.260 --> 19:38.900
It works for me.

19:38.900 --> 19:39.320
Yeah .

19:44.420 --> 19:45.900
OK, well, I'll be around.

19:45.900 --> 19:49.980
If anyone wants to come talk to me, anyone else with a question?

19:53.860 --> 19:55.280
I mentioned proof of work.

19:55.280 --> 19:55.760
Yes.

19:58.530 --> 19:59.690
What's that?

20:01.790 --> 20:07.270
Yeah, so other consensus mechanisms work differently.

20:07.270 --> 20:18.450
So the part here about this longest series of blocks being the transaction history is sort of it's this rule that was added once we decided we were going to make valid blocks difficult to produce.

20:18.450 --> 20:20.970
And that's sort of how the consensus mechanism works.

20:21.450 --> 20:23.710
But there can be other ways of achieving consensus.

20:24.170 --> 20:29.030
And a lot of more recent cryptocurrencies are experimenting with ways to do this.

20:29.950 --> 20:33.910
When I say blocks are difficult to produce, they're very difficult to produce.

20:34.450 --> 20:35.810
Mining is very energy intensive.

20:35.810 --> 20:38.590
That's something a lot of people have been able to read about in the media.

20:38.590 --> 20:40.050
It's something that gets covered a lot.

20:40.050 --> 20:41.630
So there are downsides to this.

20:41.630 --> 20:49.430
And a lot of people are working on potential alternatives to this type of situation.

20:49.550 --> 20:54.870
And the hope is that they can produce a unique permissionless transaction history in a different way.

20:54.870 --> 20:59.810
Right now, this is the one that's operational and working, and it's been working very well for Bitcoin.

21:03.240 --> 21:03.880
All right.

21:03.880 --> 21:06.780
Well, I'll be around if anyone wants to ask any other questions.

21:06.780 --> 21:07.780
Thank you for your attention.

