< Return to Video

Bitcoin - Overview

  • 0:01 - 0:03
    Voiceover: Bitcoin is a
    new virtual currency system
  • 0:03 - 0:06
    that's been gathering a
    lot of attention recently,
  • 0:06 - 0:07
    and I thought I would
    do a series of videos
  • 0:07 - 0:10
    where I really dive into
    the innards of bitcoin
  • 0:10 - 0:13
    and explain how it works in detail,
  • 0:13 - 0:16
    and my plan for this
    first video in this series
  • 0:16 - 0:18
    is to describe some of those mechanics
  • 0:18 - 0:20
    at a high level.
  • 0:20 - 0:21
    And then what I'll do in subsequent videos
  • 0:21 - 0:25
    is dive a bit deeper into
    all of the underlying aspects
  • 0:25 - 0:27
    that I have touched upon
    within this first video.
  • 0:27 - 0:30
    And my hope is that by the
    end of this video series,
  • 0:30 - 0:32
    you'll know not only what a bitcoin is,
  • 0:32 - 0:34
    but you'll also understand the mechanics
  • 0:34 - 0:36
    of how transactions are initiated.
  • 0:36 - 0:38
    You'll see how verification occurs
  • 0:38 - 0:39
    for those transactions,
  • 0:39 - 0:42
    and you'll also learn
    what it means for someone
  • 0:42 - 0:43
    to really engage in a process
  • 0:43 - 0:45
    known as "bitcoin mining",
  • 0:45 - 0:46
    and that may be a term that you've heard
  • 0:46 - 0:49
    if you've had any interest
    in bitcoin recently.
  • 0:49 - 0:51
    I do want to point out, also,
  • 0:51 - 0:54
    that the bitcoin scheme
    is fairly involved.
  • 0:54 - 0:57
    It requires some time to really cover
  • 0:57 - 0:58
    all of the relevant details,
  • 0:58 - 1:01
    and to me the best way
    to really wrap your head
  • 1:01 - 1:02
    around a scheme like bitcoin
  • 1:02 - 1:05
    is to really suspend belief for a bit
  • 1:05 - 1:08
    and get exposed to all of
    these relevant details.
  • 1:08 - 1:10
    Now, undoubtedly, you'll
    have a lot of questions
  • 1:10 - 1:11
    along the way,
  • 1:11 - 1:14
    but my hope is that by the
    end of this video series,
  • 1:14 - 1:16
    all of the relevant stones
    will have been overturned
  • 1:16 - 1:18
    and your questions will have been
  • 1:18 - 1:19
    appropriately answered,
  • 1:19 - 1:21
    but it might take some time to get there,
  • 1:21 - 1:24
    and in part, that's because
    I'll try to describe things
  • 1:24 - 1:25
    in a way that's sensible
  • 1:25 - 1:28
    and that might involve
    leaving some details out
  • 1:28 - 1:31
    until I can explain enough
    pieces of the scheme
  • 1:31 - 1:34
    and then add in those
    details in as I go along
  • 1:34 - 1:35
    so that you're not inundated
  • 1:35 - 1:38
    with too many minor points and nuances
  • 1:38 - 1:39
    along the way,
  • 1:39 - 1:41
    but you get a feel for the overall system
  • 1:41 - 1:43
    as I go through things.
  • 1:43 - 1:45
    With that, let me go ahead
    and just dive right in.
  • 1:45 - 1:46
    First of all, I do want to point out
  • 1:46 - 1:49
    that bitcoin has been described, really,
  • 1:49 - 1:51
    as a decentralized currency
  • 1:51 - 1:54
    because there's no real
    central bank or entity
  • 1:54 - 1:58
    that's involved in generating
    or transacting bitcoins,
  • 1:58 - 2:00
    and, in fact, what happens
    in the content of a bitcoin
  • 2:00 - 2:03
    is all the transactions really require
  • 2:03 - 2:04
    what's known as a peer-to-peer network,
  • 2:04 - 2:08
    a network of just individual
    hosts that essentially
  • 2:08 - 2:10
    collectively agree on different aspects
  • 2:10 - 2:14
    of how the protocol is
    implemented and used.
  • 2:15 - 2:17
    Bitcoin itself is also
    referred to sometimes
  • 2:17 - 2:19
    as a cryptocurrency,
  • 2:19 - 2:20
    and by a cryptocurrency,
  • 2:20 - 2:23
    I mean that we use a lot
    of cryptographic techniques
  • 2:23 - 2:26
    in order to facilitate or to really enable
  • 2:26 - 2:27
    bitcoin transactions to take place,
  • 2:27 - 2:29
    and I'll do separate videos
  • 2:29 - 2:30
    on some of these techniques,
  • 2:30 - 2:32
    but just take it at face value right now,
  • 2:32 - 2:33
    that it's decentralized
  • 2:33 - 2:36
    and is a type of cryptocurrency.
  • 2:36 - 2:38
    I also want to point out that
    the term "bitcoin" itself
  • 2:38 - 2:41
    can in fact be a bit confusing,
  • 2:41 - 2:43
    and in many ways, bitcoin transactions
  • 2:43 - 2:46
    don't really resemble
    traditional coin transactions
  • 2:46 - 2:49
    so much as they represent really entries
  • 2:49 - 2:52
    in some type of a global ledger,
  • 2:52 - 2:55
    and by that, I mean let's say you have
  • 2:55 - 2:56
    a transaction taking place,
  • 2:56 - 2:58
    and let's say the
    transaction is taking place
  • 2:58 - 3:01
    within, or among two parties,
  • 3:01 - 3:03
    and we'll call them Alice and Bob,
  • 3:03 - 3:05
    which are traditional names that are used
  • 3:05 - 3:07
    in many cryptographic protocols
  • 3:07 - 3:09
    to describe the parties involved,
  • 3:09 - 3:12
    and imagine that Alice wants to transfer,
  • 3:12 - 3:14
    or really wants to assign,
  • 3:14 - 3:16
    a certain number of
    bitcoins that she possesses
  • 3:16 - 3:18
    over to Bob,
  • 3:18 - 3:19
    and you can think of
    this transaction, really,
  • 3:19 - 3:23
    as an entry in a ledger of some sort,
  • 3:24 - 3:26
    and I also want to point
    out before proceeding
  • 3:26 - 3:28
    that even though I've used terms
  • 3:28 - 3:30
    like Alice and Bob,
  • 3:30 - 3:32
    what I really mean in
    the context of bitcoin
  • 3:32 - 3:36
    is not the actual identities
    in the physical sense,
  • 3:36 - 3:40
    but really that Alice
    and Bob are identities
  • 3:40 - 3:41
    in the bitcoin system,
  • 3:41 - 3:43
    and these identities are just,
  • 3:43 - 3:45
    in actual implementation,
  • 3:45 - 3:47
    are just collections of numbers
  • 3:47 - 3:49
    that do not have to be tied
  • 3:49 - 3:53
    with Alice and Bob's
    real-world identities.
  • 3:53 - 3:56
    In that capacity, you can
    think of bitcoin at any,
  • 3:56 - 3:57
    it really is effectively being,
  • 3:57 - 3:59
    of being pseudonyms,
  • 3:59 - 4:01
    rather than real names,
  • 4:01 - 4:02
    and the idea is that
    bitcoin really becomes more
  • 4:02 - 4:04
    of a pseudonymous protocol,
  • 4:04 - 4:07
    where people are addressed
    by their pseudonyms,
  • 4:07 - 4:09
    and that provides some level of privacy
  • 4:09 - 4:10
    to users that want to transact
  • 4:10 - 4:13
    using the bitcoin system.
  • 4:14 - 4:16
    Now, in a transaction
    between Alice and Bob,
  • 4:16 - 4:17
    what Alice will basically do
  • 4:17 - 4:19
    is specify a few different numbers.
  • 4:19 - 4:21
    She has to specify how many bitcoins
  • 4:21 - 4:23
    she wants to allocate to Bob.
  • 4:23 - 4:25
    Let's say Alice started off
    with 50 bitcoins of her own.
  • 4:25 - 4:27
    She might decide that she wants to give,
  • 4:27 - 4:31
    let's say, 30 of these
    bitcoins over to Bob,
  • 4:32 - 4:34
    and let's say she wants to have
  • 4:34 - 4:35
    some number of bitcoins
    returned back to her,
  • 4:35 - 4:36
    so you have to specify,
  • 4:36 - 4:38
    or Alice has to specify, rather,
  • 4:38 - 4:39
    how much change she's going to get,
  • 4:39 - 4:41
    so in this case, let's say
    her change is going to be
  • 4:41 - 4:43
    18 bitcoins for herself,
  • 4:43 - 4:45
    and then the remaining 2
    bitcoins are going to be
  • 4:46 - 4:48
    a transaction fee,
  • 4:48 - 4:51
    and we'll talk about what
    a transaction fee means
  • 4:51 - 4:52
    a little later,
  • 4:52 - 4:54
    and I think I'll also dive
    into it in future videos,
  • 4:54 - 4:57
    but it's basically an
    incentive for other nodes
  • 4:57 - 4:59
    in the bitcoin network to help Alice
  • 4:59 - 5:01
    in essentially validating
    some of the details
  • 5:01 - 5:04
    of this transaction for Bob.
  • 5:05 - 5:07
    Now, Alice will take
    these transaction details
  • 5:07 - 5:12
    and apply what's known
    as a digital signature
  • 5:12 - 5:14
    to these transaction details,
  • 5:14 - 5:15
    and a digital signature is basically
  • 5:15 - 5:18
    the mathematical analog of
    a traditional signature.
  • 5:18 - 5:21
    It really binds Alice's
    identity to the details
  • 5:21 - 5:23
    of this transaction.
  • 5:23 - 5:24
    And by Alice's identity, again,
  • 5:24 - 5:28
    I mean her identity
    within the bitcoin system,
  • 5:28 - 5:29
    and this binding is really done
  • 5:29 - 5:32
    in a cryptographically strong way.
  • 5:32 - 5:34
    Now, the details of this transaction
  • 5:34 - 5:35
    once it takes place,
  • 5:35 - 5:37
    are going to be broadcast out,
  • 5:37 - 5:39
    so Alice is going to take
    these transaction details
  • 5:39 - 5:41
    and effectively just broadcast them out
  • 5:41 - 5:45
    to all the nodes in the
    peer-to-peer network
  • 5:45 - 5:48
    that represent bitcoin nodes.
  • 5:48 - 5:51
    Now, Bob, when he receives information
  • 5:51 - 5:52
    about this transaction,
  • 5:52 - 5:54
    he receives it over the
    peer-to-peer network.
  • 5:54 - 5:55
    He'll probably sandy check
  • 5:55 - 5:57
    some part of the transaction.
  • 5:57 - 5:59
    For example, he might
    check that the numbers
  • 5:59 - 6:00
    work out correctly,
  • 6:00 - 6:02
    that Alice, let's say,
    started off with 50 bitcoins
  • 6:02 - 6:03
    and is not trying to transfer
  • 6:03 - 6:06
    more than 50 bitcoins to
    him, and so on and so forth.
  • 6:06 - 6:09
    He's going to have some
    mathematical assurance
  • 6:09 - 6:11
    because of some of the
    cryptography involved
  • 6:11 - 6:14
    that some of these claims are accurate,
  • 6:14 - 6:16
    that Alice, let's say, has the bitcoins
  • 6:16 - 6:18
    that she's claimed to possess,
  • 6:18 - 6:19
    and that she's expressed an interest
  • 6:19 - 6:21
    to assign those bitcoins to him,
  • 6:21 - 6:23
    but what he won't know yet is whether
  • 6:23 - 6:26
    Alice has really tried to
    transfer those same bitcoins
  • 6:26 - 6:29
    to anyone else over the course of time
  • 6:29 - 6:31
    or maybe just prior to that point.
  • 6:31 - 6:33
    the way that we handle that situation,
  • 6:33 - 6:34
    and by the way, I should point out
  • 6:34 - 6:37
    that this concept of Alice
    trying to, let's say,
  • 6:37 - 6:39
    spend coins twice,
  • 6:39 - 6:41
    in the context of digital cash
  • 6:41 - 6:43
    and electronic currency systems,
  • 6:43 - 6:46
    this concept is known as double spending,
  • 6:46 - 6:48
    and it's something you have to worry about
  • 6:48 - 6:49
    when you have virtual currencies
  • 6:49 - 6:52
    because it's very easy
    for someone to just copy
  • 6:52 - 6:54
    the numbers that
    represent this transaction
  • 6:54 - 6:57
    and try to use them elsewhere.
  • 6:57 - 6:59
    The way we basically handle
  • 6:59 - 7:01
    and reduce the risk of double spending
  • 7:01 - 7:03
    is through a specific set of nodes
  • 7:03 - 7:05
    in this peer-to-peer network
  • 7:05 - 7:09
    who are known as bitcoin miners.
  • 7:09 - 7:11
    You might have heard
    this term bitcoin miners,
  • 7:11 - 7:13
    and the bitcoin miners are basically
  • 7:13 - 7:15
    specific individuals,
  • 7:15 - 7:17
    specific nodes within
    this peer-to-peer network,
  • 7:17 - 7:19
    and what they basically do is they take
  • 7:19 - 7:21
    all of the transactions that they see,
  • 7:21 - 7:22
    and remember,
  • 7:22 - 7:23
    they're listening to all
    of these transactions,
  • 7:23 - 7:25
    and not just Alice and Bob's,
  • 7:25 - 7:26
    but other transactions
    that are taking place,
  • 7:26 - 7:28
    and they'll take those transactions,
  • 7:28 - 7:30
    and ultimately, they will
    take those transactions
  • 7:30 - 7:31
    and will compile them
  • 7:31 - 7:34
    into what's known as a transaction block.
  • 7:34 - 7:35
    So it's basically a recording
  • 7:35 - 7:40
    of all the previously
    unrecorded transactions.
  • 7:40 - 7:43
    If you think of a single transaction
  • 7:43 - 7:44
    let's say, as a ledger item,
  • 7:44 - 7:46
    you could think of a transaction block
  • 7:46 - 7:48
    as representing, let's say, an entire page
  • 7:48 - 7:50
    in a ledger book.
  • 7:50 - 7:54
    These bitcoin miners will
    also include in this block,
  • 7:54 - 7:56
    in addition to all these
    unrecorded transactions,
  • 7:56 - 7:58
    they will also include in this block
  • 7:58 - 8:01
    a special transaction that's
    meant just for themselves
  • 8:01 - 8:04
    to basically reward
    themselves for the effort
  • 8:04 - 8:06
    of doing this mining.
  • 8:07 - 8:09
    Now, a transaction block will also contain
  • 8:09 - 8:12
    an encoding of the
    previous transaction block,
  • 8:12 - 8:14
    so there's going to be
    some level of continuity,
  • 8:14 - 8:17
    and then bitcoin miners will also include
  • 8:17 - 8:19
    a specially-crafted sequence of numbers
  • 8:19 - 8:22
    associated with these transactions,
  • 8:22 - 8:24
    and this sequence of numbers is known
  • 8:24 - 8:27
    as a proof of work,
  • 8:27 - 8:28
    and it's called a proof of work
  • 8:28 - 8:30
    because it's sometihng that's
    really hard to generate,
  • 8:30 - 8:32
    something that requires
    a lot of effort to do,
  • 8:32 - 8:34
    and that kind of makes
    it hard for just anybody
  • 8:34 - 8:37
    to get involved with
    bitcoin mining willy-nilly,
  • 8:37 - 8:40
    but it requires that they
    really exhibit or exert
  • 8:40 - 8:42
    some computational effort,
  • 8:42 - 8:45
    basically in exchange for
    getting this extra reward
  • 8:45 - 8:46
    of a payment,
  • 8:46 - 8:48
    and also in exchange for getting
  • 8:48 - 8:50
    this transaction fee that
    they're going to be promised
  • 8:50 - 8:54
    by Alice to engage in this sort of work.
  • 8:54 - 8:56
    I'll talk about what
    proof-of-work protocols are
  • 8:56 - 8:58
    in a separate video in more detail.
  • 8:58 - 9:00
    Now, because each transaction block
  • 9:00 - 9:04
    contains information about
    previous transactions,
  • 9:04 - 9:05
    really what you end up having
  • 9:05 - 9:07
    is not just a single block.
  • 9:07 - 9:09
    You ultimately have what
    you can think of as a chain
  • 9:10 - 9:11
    of transactions,
  • 9:11 - 9:15
    and you can call this a
    transaction block chain.
  • 9:15 - 9:17
    The idea is as soon as a bitcoin miner
  • 9:17 - 9:20
    is able to construct a
    transaction block chain
  • 9:20 - 9:22
    containing all these
    unrecorded transactions,
  • 9:22 - 9:23
    and this proof of work,
  • 9:23 - 9:27
    it'll broadcast the
    details of that chain out
  • 9:27 - 9:30
    to all of the nodes, all of the peers
  • 9:30 - 9:33
    on that peer-to-peer network for bitcoin.
  • 9:33 - 9:37
    And then once the newly-broadcast chain
  • 9:37 - 9:39
    gets kind of verified and
    meets the right properties,
  • 9:39 - 9:41
    the nodes on the network
  • 9:41 - 9:42
    are just going to go
    ahead and start using it,
  • 9:42 - 9:43
    and they're going to start appending
  • 9:43 - 9:46
    new transaction blocks to that chain.
  • 9:46 - 9:47
    They're going to take anything
  • 9:47 - 9:48
    that hasn't yet been processed
  • 9:48 - 9:51
    and start incorporating it
    into the transaction chain
  • 9:51 - 9:54
    that was broadcast out by the node
  • 9:54 - 9:58
    who came up with the
    proof of work correctly.
  • 9:58 - 9:59
    Now, this transaction block chain,
  • 9:59 - 10:01
    really what we're going to be doing
  • 10:01 - 10:02
    in the context of bitcoin
  • 10:02 - 10:05
    is the nodes are only going to consider
  • 10:06 - 10:08
    the transaction block chain that reflects
  • 10:08 - 10:11
    the greatest amount of work
    to generate its contents,
  • 10:11 - 10:13
    and again, there's this proof
    of work that I mentioned
  • 10:13 - 10:15
    that is used to kind of determine
  • 10:15 - 10:18
    or identify what the,
    what work was involved
  • 10:18 - 10:21
    in coming up with the
    transaction block chain.
  • 10:21 - 10:23
    The one that's the longest
    is going to be considered
  • 10:23 - 10:25
    sacrosanct within the bitcoin system.
  • 10:25 - 10:27
    Future miners are supposed to only work
  • 10:27 - 10:31
    off the chain that has
    the most work put into it.
  • 10:31 - 10:32
    Now, what's remarkable here
  • 10:32 - 10:35
    is that the whole
    process is decentralized.
  • 10:35 - 10:38
    There is no bank or no
    centrally-trusted entity
  • 10:38 - 10:41
    that was actually involved
    in the transaction.
  • 10:41 - 10:43
    Hopefully this first video gave you
  • 10:43 - 10:45
    a bit of description,
    a flavor, if you will,
  • 10:45 - 10:48
    for the high-level mechanics
    of the bitcoin system.
  • 10:48 - 10:50
    There are a lot of stones
    I have left unturned,
  • 10:50 - 10:52
    and what I'll do in subsequent videos
  • 10:52 - 10:54
    is start covering those details,
  • 10:54 - 10:56
    and I'm sure you have a lot of questions,
  • 10:56 - 10:57
    and hopefully the future videos
  • 10:57 - 11:00
    will help answer some of
    those questions for you.
Title:
Bitcoin - Overview
Description:

more » « less
Video Language:
English
Team:
Khan Academy
Duration:
11:01
Amara Bot edited English subtitles for Bitcoin - Overview

English subtitles

Revisions