YouTube2Text

How Bitcoin Works Under the Hood — Transcript

by CuriousInventor · 4,409 words · 460 segments · language en · Watch on YouTube

Full transcript

  1. 0:00the goal of this video is to explain how the Bitcoin works under the hood
  2. 0:03to give a clearer idea of what it really means to own, send,
  3. 0:06or mine bitcoins
  4. 0:08first a brief high-level overview of what Bitcoin is
  5. 0:12at its core Bitcoin is just a digital file that list accounts and money like a
  6. 0:15ledger
  7. 0:17a copy of this file is maintained on every computer in the Bitcoin network
  8. 0:21these numbers don't represent anything in the physical world, they only have
  9. 0:24value because people are willing to trade real goods and services for
  10. 0:27a higher number next to their account and believe others will do the same
  11. 0:31the numbers only have value because we believe they have value
  12. 0:34just like any other fiat currency
  13. 0:37to send money you broadcast to the network that the amount on your account
  14. 0:40should go down in the amount on a receiver's account up
  15. 0:43nodes or computers in the Bitcoin network apply that transaction to their copy of
  16. 0:47the ledger
  17. 0:48and then pass on the transaction to other nodes
  18. 0:51this with some math basic security is really all there is
  19. 0:54a system that lets a group of computers maintain a ledger
  20. 0:58While this may sound similar to the way a bank maintains a ledger
  21. 1:01the fact that the ledger is maintained by a Group rather than a single entity
  22. 1:04introduces a number of important differences
  23. 1:07for one, unlike a bank where you only know about your own transactions
  24. 1:11In Bitcoin
  25. 1:12everyone knows about everyone else's transactions. Also while you can trust
  26. 1:16your bank or you can at least sue it if something goes wrong
  27. 1:18in Bitcoin you're dealing with anonymous strangers so you shouldn't trust anyone.
  28. 1:22The Bitcoin system is amazingly designed so that no trust is needed
  29. 1:26special mathematical functions protect every aspect to the system
  30. 1:31the rest to this video will explain in detail how the Bitcoin allows such a group
  31. 1:34of strangers to manage each others' financial transactions
  32. 1:39At a basic level, for Alice to send money to Bob
  33. 1:41she simply broadcast a message with the accounts and the amount sent 5 Bitcoins
  34. 1:46from Alice to Bob.
  35. 1:46Every node that receives it will update their copy of the ledger
  36. 1:51and then pass along the transaction message. But how can nodes be sure that
  37. 1:54the request is authentic
  38. 1:56that only the rightful owner has sent a message. Bitcoin rules require a kind of
  39. 2:00password unlock unspent funds
  40. 2:02and this password is what's called a digital signature. Like a real
  41. 2:05handwritten signature
  42. 2:07it proves the authenticity of a message but it does so through a mathematical
  43. 2:09algorithm that prevents copying or forgery in the digital realm
  44. 2:14unlike a simple static password a completely different digital signature
  45. 2:18is required for every transaction
  46. 2:19keep in mind that in Bitcoin, you're dealing with complete strangers
  47. 2:22so you never want to reveal a password that could be copied and reused by
  48. 2:26someone else
  49. 2:27A digital signature works by utilizing two different but connected keys,
  50. 2:31a private key to create a signature and a public key that others can use to check it
  51. 2:35you can think of the private key as the true password and the signature as an
  52. 2:39intermediary that proves you have the password without requiring you to reveal
  53. 2:42it
  54. 2:43Public keys are actually the send to address in Bitcoin,
  55. 2:47so when you send someone money you're really sending it to their public key
  56. 2:51to spend money you must prove that you're the true owner of a public key
  57. 2:54address where money was sent
  58. 2:55and you do that by generating a digital signature from a transaction message
  59. 2:59and your private key
  60. 3:00other nodes in the network can use that signature in a different function to
  61. 3:04verify that it corresponds with your public key
  62. 3:06through the math behind the digital signature they're able to verify that
  63. 3:09the sender
  64. 3:10owned a private key without actually seeing the private key
  65. 3:13importantly because the signature depends on the message it will be
  66. 3:16different for every transaction
  67. 3:18and therefore can't be reused by someone for a different transaction
  68. 3:21this dependence on the message also means that no one can modify the message
  69. 3:25while passing it along the network
  70. 3:27as any changes to the message would invalidate the signature
  71. 3:30the math behind this is fairly complex and well I won't try to explain it fully
  72. 3:34now
  73. 3:34here are some topics you can google to get started. Elliptic Curve
  74. 3:38digital signature algorithm and mathematical trapdoor
  75. 3:42More at the end of the video
  76. 3:44so far we know that digital signatures are used to ensure a transaction is
  77. 3:48authorized
  78. 3:49but I've oversimplified how nodes in the network keep track of account balances
  79. 3:53in fact no records of account balances are kept at all
  80. 3:56if you don't keep track of how much money any given person has
  81. 3:59how do you know if they have enough to send to someone else? Instead of balances
  82. 4:03ownership the funds is verified through links to previous transactions
  83. 4:07here's how this works. To send five Bitcoins to Bob
  84. 4:10Alice must reference other transactions where she received five or more Bitcoins.
  85. 4:14these reference transactions are called Inputs. Other nodes verifying this
  86. 4:18transaction will check those inputs to make sure Alice was in fact a recipient
  87. 4:22and also that the inputs at up to five or more Bitcoins.
  88. 4:25Let's look at a real transaction to see this in practice
  89. 4:28this transaction references 6 inputs for a total of 139.6 Bitcoins
  90. 4:34In the output section notice that there are two lines
  91. 4:37the first one of these is actually going back to the sender as change for the
  92. 4:40transaction
  93. 4:42a simple fine rule states that each input must be used up completely in a
  94. 4:45transaction
  95. 4:46so if you're trying to send an amount that doesn't exactly match one of your
  96. 4:49inputs
  97. 4:50you need to send any remaining amount back to yourself. Through these reference
  98. 4:54input linkages
  99. 4:55ownership of Bitcoins is passed along in a kind of chain with the validity of
  100. 4:58each transaction is dependent on previous transactions
  101. 5:02but how can you trust this previous transactions? You can't and you should
  102. 5:05check their inputs, too.
  103. 5:06in fact when you first install Bitcoin wallet software, it downloads every
  104. 5:10transaction ever made
  105. 5:12and checks each one's validity all the way back to the very first transaction
  106. 5:15remember you're dealing with complete strangers so it's important to verify
  107. 5:19every transaction for yourself
  108. 5:21this process can take over 24 hours but it only needs to be done once
  109. 5:24once the transaction has been used once it is considered spent
  110. 5:28and cannot be used again. Otherwise someone could double spend an input by
  111. 5:32referencing that in multiple transactions
  112. 5:35When verifying a transaction, in addition to the other checks
  113. 5:38nodes also make sure the inputs haven't already been spent.
  114. 5:42To be explicit
  115. 5:42for each input notes check every other transaction ever made to make sure
  116. 5:46that input
  117. 5:46hasn't already been used before. While this may seem time-consuming
  118. 5:50as there are now over 20 million transactions, it's made fast with an
  119. 5:54index of unspent transactions
  120. 5:54So instead of a ledger of balances
  121. 5:58Bitcoin nodes keep track of a giant list of transactions. Owning bitcoins means
  122. 6:02that there are transactions in this list that point to your name
  123. 6:04and haven't been spent, or in other words, used as inputs in other transactions
  124. 6:09One interesting consequence of this ownership structure is that figuring out
  125. 6:12your own balance requires
  126. 6:13iterating through every transaction ever made and adding up all your unspent
  127. 6:17inputs. Another interesting note about transactions is that the system can
  128. 6:21support more complex ones then simply sending funds to one person.
  129. 6:25You may have noticed a cryptic looking line of text in the output shown
  130. 6:28previously
  131. 6:28it turns out that outputs are more like puzzles to be solved rather than simple
  132. 6:32to addresses.
  133. 6:33Rather than emailing, sending money in Bitcoin is more like putting money in a
  134. 6:37public locker
  135. 6:37and attaching a math puzzle that must be solved to open it. The puzzle is defined using
  136. 6:41a special scripting language
  137. 6:43and while it's typically designed so that only a single owner other public key
  138. 6:46can solve it,
  139. 6:47more complex conditions are possible. For instance, two out of three signatures could
  140. 6:51be required for an escrow based transaction.
  141. 6:54Another example is the very first Bitcoin transaction ever made
  142. 6:57which was a puzzle that anyone could solve.
  143. 7:00While most Bitcoin software hides the scripting layer for you, you're free to
  144. 7:03write your own software and conditions, although this can be risky
  145. 7:07Over 2600 Bitcoins were lost in one batch of transactions due to a malformed
  146. 7:11address.
  147. 7:13This highlights an important part of Bitcoin, as there's no bank or credit card
  148. 7:17company you can appeal to
  149. 7:18any user error mistakes can result in permanent loss of Bitcoins.
  150. 7:21And not just from your own account but from the Bitcoin economy overall.
  151. 7:26if you lose your private key any funds associated with the corresponding public
  152. 7:29key will be gone forever.
  153. 7:31Because people will likely lose private keys due to hard drive crashes and
  154. 7:35insufficient backups
  155. 7:36this means the Bitcoin currency will eventually be a deflationary one.
  156. 7:41Before explaining the final piece that secures Bitcoin, mining,
  157. 7:44I want to highlight a few points about anonymity in Bitcoin.
  158. 7:48If you access Bitcoin through a TOR network that hides your IP address
  159. 7:52you can use Bitcoin without ever revealing anything more than your public
  160. 7:55key
  161. 7:56And to avoid someone linking your transactions together, remember they're
  162. 7:59all publicly stored on every computer,
  163. 8:01you can generate a new public key for every incoming transaction.
  164. 8:05It is possible however to inadvertently link public keys together.
  165. 8:09In the transaction shown earlier, 6 input transactions were used as sources,
  166. 8:13and despite the fact that all those inputs were sent to different addresses
  167. 8:16they all became linked in that transaction
  168. 8:18the sender proved that he owned all those addresses by supplying the digital
  169. 8:22signature to unlock each one.
  170. 8:23Researchers have in fact use these links to study Bitcoin user behavior.
  171. 8:27You might think that generating a public key receiving address could potentially
  172. 8:30create a link to your true identity,
  173. 8:32but even this step is anonymous, and amazingly, can be done with no connection
  174. 8:36to the network.
  175. 8:37You simply click a button in your wallet software and it randomly generates a new
  176. 8:40private
  177. 8:41andn public key. Because there are so many different possible addresses,
  178. 8:45there's no reason to even check if someone else already has that key,
  179. 8:48Compare this to signing up for an email address, where almost everything you
  180. 8:51might try has been taken
  181. 8:53In fact, if you did get someone else's key, you would have access to all their
  182. 8:56money.
  183. 8:57This is the total number of possible Bitcoin addresses. These large numbers
  184. 9:01protect the Bitcoin system in several ways,
  185. 9:04so it's useful to try to appreciate just how big they are. Some estimates for the
  186. 9:08number of grains of sand in the entire world are
  187. 9:10around seven and a half million trillion
  188. 9:13now imagine that every grain of sand represented an entire other
  189. 9:16earth of additional grains you're still much smaller than the possible number of
  190. 9:20Bitcoin addresses.
  191. 9:22Let's recap the coin security so far. By verifying the digital signature
  192. 9:26we know that only the true owner could have created the transaction message,
  193. 9:30And to make sure the sender actually has money to spend, we also check each
  194. 9:33reference transaction,
  195. 9:34making sure it is unspent. But there's still one large security hole in the
  196. 9:38system that can make this
  197. 9:39unspent check unreliable, and this has to do with the order
  198. 9:43of transactions. Considering that transactions are passed node by node
  199. 9:46through the network
  200. 9:47there's no guarantee that the order in which you receive them represents the
  201. 9:50order in which they were created
  202. 9:52And you shouldn't trust a timestamp because someone could easily lie about the time
  203. 9:55a transaction was created.
  204. 9:57Therefore you have no way to tell whether one transaction came before
  205. 10:00another, and
  206. 10:01this opens up the potential for fraud. A malicious user,
  207. 10:04Alice, could send a transaction giving money to Bob wait for Bob to ship a
  208. 10:08product,
  209. 10:09and then send another transaction referencing that same input back to
  210. 10:12herself.
  211. 10:12Because of differences in propagation times, some nodes on the network would
  212. 10:16receive the second
  213. 10:17double spending transaction before the one to Bob, and when bob's transaction
  214. 10:21arrived
  215. 10:22they would consider invalid because it's trying to reuse an input.
  216. 10:25So by would be out both the shipped product and his money. Overall there would be
  217. 10:29disagreement across the network about whether Bob or Alice had the money
  218. 10:33because there's no way to prove which transaction came first. In light of this
  219. 10:37there needs to be a way for the entire network to agree about the order of
  220. 10:40transactions
  221. 10:41which is very much a daunting challenge in a decentralized system
  222. 10:44Bitcoin's solution is a clever way to both determine and safeguard the ordering through
  223. 10:48a kind of mathematical race
  224. 10:51The Bitcoin system orders transactions by placing them in groups called blocks
  225. 10:55and linking those blocks together in something called the Block Chain
  226. 10:58Note that this is different from the transaction chain we discussed earlier.
  227. 11:02The block chain is used to order transactions, whereas the transaction
  228. 11:06chain keeps track of how ownership changes.
  229. 11:08Each block has a reference to the previous block and this is what places
  230. 11:12one block after another in time.
  231. 11:14You can traverse the references backwards all the way to the very first
  232. 11:17group of transactions ever made.
  233. 11:18Transactions in the same block are considered to have happened at the same
  234. 11:22time,
  235. 11:22and transactions not yet in a block are called unconfirmed
  236. 11:26or unordered. Any node can collect a set up unconfirmed transactions into a block and
  237. 11:30broadcast it to the rest to the network as a suggestion for what the next block
  238. 11:33in a chain should be.
  239. 11:35Because multiple people could create blocks at the same time
  240. 11:38there could be several options to choose from, so how does the network decide
  241. 11:42which should be next?
  242. 11:43We can't rely on the order that blocks arrive because, as explained with transactions
  243. 11:47above,
  244. 11:47they may arrive in different orders at different points in the network.
  245. 11:50Part of the Bitcoin solution is that each block must contain the answer to
  246. 11:54a very special mathematical problem.
  247. 11:56Computers run the entire text of a block plus an additional random guess through
  248. 12:01something called a cryptographic hash
  249. 12:02until the output is below a certain value. A hash function creates a short
  250. 12:06digest from any arbitrary length of text.
  251. 12:08In our case the result is a 32 byte number. Here are some examples of the
  252. 12:12specific cash function Bitcoin uses,
  253. 12:15SHA256. Note how much the output changes in result of a single
  254. 12:20extra period at the end of the third example. The output is completely
  255. 12:23unpredictable.
  256. 12:24so the only way to find a particular output value is to make random guesses.
  257. 12:28It's very much like guessing the combination to a lock.
  258. 12:31You may get lucky on your first guess but on average it takes many guesses.
  259. 12:35In fact in Bitcoin, it would take a typical computer several years of
  260. 12:39guessing to solve a block.
  261. 12:40With every computer in the entire network or guessing numbers it takes
  262. 12:43about 10 minutes on average for someone to find a solution.
  263. 12:46The first person to solve a math problem broadcasts their block
  264. 12:50and gets to have their group of transactions accepted as the next in the
  265. 12:53chain.
  266. 12:53The randomness in the math problem effectively spreads out when people find
  267. 12:58a solution,
  268. 12:58making it unlikely that two people will solve it at the same time.
  269. 13:02Occasionally, however, more than one block will be solved at the same time,
  270. 13:06leading to several possible branches. In this case you simply build on top of the
  271. 13:10first one you received.
  272. 13:11Others may have received the blocks in a different order and will be building on
  273. 13:14the block they first received.
  274. 13:17The tie gets broken when someone solves the next block. The general rule is that
  275. 13:21you always immediately switch to the longest branch available.
  276. 13:23The math makes it rare for box to be solved at the same time, and even more
  277. 13:27rare for this to happen multiple times in a row.
  278. 13:29The end result is that the block chain quickly stabilizes,
  279. 13:33meaning that everyone is in agreement about the order of blocks a few back from the
  280. 13:36end of the chain.
  281. 13:39The fact that there's some ambiguity in the end of the chain has some important
  282. 13:42implications for transaction security.
  283. 13:44For instance, if your transaction finds itself in one of the shorter branches,
  284. 13:48it will lose its place in line within the block chain. Typically, this just means it
  285. 13:53will go back to the pool of unconfirmed transactions and be included in a later
  286. 13:56block.
  287. 13:57Unfortunately this potential for transactions to lose their place
  288. 14:00opens the door to the very double spend attack that was our original motivation
  289. 14:04for an ordering system.
  290. 14:06Let's look at how a double spend attack would work in the system described so
  291. 14:09far.
  292. 14:11A fraudster, Alice, sends money to Bob. Bob then waits for the transaction to get
  293. 14:15confirmed into the block chain,
  294. 14:17and then ships a product.
  295. 14:19Now because nodes always switch to a longer branch if Alice can generate a
  296. 14:22longer branch that replaces the transaction to Bob with one to someone
  297. 14:26else,
  298. 14:26his money will effectively get erased. Bob's transaction will initially get tossed
  299. 14:31back into the unconfirmed pool,
  300. 14:32but since Alice has replaced it with another transaction that uses its same
  301. 14:36input,
  302. 14:36notes will now consider Bob's transaction invalid because it's
  303. 14:39referencing an already spent
  304. 14:41input.
  305. 14:42So how does the ordering system prevent Alice from defrauding Bob?
  306. 14:46You might think that Alice could pre-compute a chain of blocks to spring on the
  307. 14:50network at just the right time,
  308. 14:51but the math puzzles in each block actually prevent this. We need to look a
  309. 14:55little deeper into the cryptographic hash explained earlier to fully
  310. 14:58understand why.
  311. 14:59As mentioned previously, solving a block involves trying to get the cryptographic
  312. 15:03hash of
  313. 15:04the block to be below a certain value, and you do that by trying different
  314. 15:07random numbers at the end of the block.
  315. 15:11Once solved, the hash output is like a fingerprint that uniquely identifies
  316. 15:14that block.
  317. 15:15If even a single character in the block is changed,
  318. 15:18the block's hash would be completely different, just like we saw before when
  319. 15:22an additional period was added.
  320. 15:26The hash output, or finger print, is actually what's used as the previous
  321. 15:29block reference.
  322. 15:30One result of this is that there's no way to switch out a block in the middle
  323. 15:34of the chain
  324. 15:35because the hash value for the new block would be different and the next box
  325. 15:38reference would no longer point to it.
  326. 15:40And subtly, but even more importantly, a block cannot be solved before the
  327. 15:44previous block is solved.
  328. 15:46The previous block reference is part of the text that goes through the hash
  329. 15:49function,
  330. 15:50so any changes to it would require resolving. Getting back to Alice,
  331. 15:55this is why she can't pre-compute a branch, she can only start solving blocks
  332. 15:59once the block she wants to build on is solved,
  333. 16:01and its hash value is known. She is therefore in a race with the rest of the
  334. 16:05network until bob ships the product, which is when she wants to present a
  335. 16:08longer branch.
  336. 16:11One last question is whether Alice might be able to outpace everyone if she had
  337. 16:14an extremely fast computer,
  338. 16:16or perhaps a roomful of computers. But even with thousands of computers
  339. 16:20she would be unlikely to win the race to solve a block because she isn't racing
  340. 16:24any ONE computer,
  341. 16:25but rather the entire network. You can think of it like a lottery.
  342. 16:28She can operate thousands of computers, or equivalently,
  343. 16:32buy thousands of lottery tickets, but even then, it's much more likely that someone
  344. 16:35else would win.
  345. 16:36She would need control of half the total computing power in the entire network to
  346. 16:41have a 50 percent chance of solving a block before someone else,
  347. 16:44and much more to have a high probability of winning several blocks in a row
  348. 16:47faster.
  349. 16:48So transactions in the block chain are protected by a mathematical race,
  350. 16:52one that pits an attacker against the entire rest to the network.
  351. 16:55A consequence of blocks building on top of each other is that transactions further
  352. 16:59back in the chain are more secure.
  353. 17:00An attacker would have to outpace the network for a longer amount of time to
  354. 17:04carry out a double spend attack.
  355. 17:05replacing a block further back in the chain. So the system is only vulnerable
  356. 17:10to a double spend attack near the end of the chain,
  357. 17:12which is why it's recommended to wait several blocks before considering
  358. 17:15received money final.
  359. 17:16One last comment on the block chain before explaining the final pieces of the
  360. 17:21Bitcoin system.
  361. 17:22Amazingly, nothing described so far requires any trust.
  362. 17:26When you receive information from strangers in the Bitcoin network,
  363. 17:29you can check for yourself that block solutions are correct. And because the
  364. 17:33math problems are so hard,
  365. 17:34you know that there's no way any attacker could have generated them on
  366. 17:37their own.
  367. 17:37The solutions are proof that the computing power of the entire network was
  368. 17:41brought to bear.
  369. 17:42Now that we've discussed how money is transferred through digital signatures
  370. 17:46and transaction chains,
  371. 17:47and how the order of those transactions is protected in the block chain,
  372. 17:51let's go over the final piece: where Bitcoins come from.
  373. 17:54To send money, you must reference a previous transaction where you were the
  374. 17:58recipient. But how to coins get into this
  375. 18:00ownership chain in the first place? As a way to slowly and randomly generate
  376. 18:05and distribute coins,
  377. 18:06a reward is given to whoever solves block. This is why solving blocks is called
  378. 18:10mining,
  379. 18:11although its real purpose is to verify transactions and safeguard the block
  380. 18:15chain.
  381. 18:15Every four years the block reward is cut in half so eventually no more coins will
  382. 18:19be released.
  383. 18:20About 21 million in total will be created. Bear in mind that you can send
  384. 18:24down to 1 100 millionth of a Bitcoin,
  385. 18:26so the total number available will likely not limit the currency's usability.
  386. 18:30once the block rewards cease, when incentive will miners have to process transactions?
  387. 18:35In addition to the block rewards, miners also get any transaction fees that can
  388. 18:39optionally be included with transactions.
  389. 18:41Right now miners will include transactions with no fees into blocks
  390. 18:45because their main incentive
  391. 18:46is the block reward, but in the future, transactions will likely be processed in
  392. 18:50order of the fees attached,
  393. 18:51and ones without fees will likely be ignored. Sending money in Bitcoin will
  394. 18:55probably not be free,
  395. 18:56but will hopefully still be cheaper than current credit card fees.
  396. 19:00As mentioned before, on average it would take several years for typical computer
  397. 19:04to solve a block,
  398. 19:05so an individual's chance of ever solving one before the rest to the network
  399. 19:09which, typically takes 10 minutes, is very low. to receive a steadier stream of
  400. 19:13income,
  401. 19:14many people join groups called mining pools that collectively work to solve
  402. 19:18blocks.
  403. 19:18and distribute rewards based on work contributed. These act somewhat like lottery
  404. 19:23pools among coworkers,
  405. 19:24except that some of these pools are quite large and comprise more than twenty
  406. 19:27percent above all the computers in the network.
  407. 19:29The fact that some of these pools are so large has some important implications
  408. 19:34about security.
  409. 19:35As mentioned before it's very unlikely for an attacker to solve several blocks
  410. 19:39in a row faster than the rest fo the network,
  411. 19:41but it is possible, and the probability increases as the attacker's processing
  412. 19:45power gains in proportion to the rest to the network.
  413. 19:48In fact, one of these mining pools, BTC guild, has solved six blocks in a row by
  414. 19:52itself,
  415. 19:53and has voluntarily limited its members to ward of distrust in the
  416. 19:56entire Bitcoin network.
  417. 19:57Even a substantial computing power, the further back in the block chain a
  418. 20:01transaction gets, the harder it would be for an
  419. 20:03attacker to change it. The current recommendation is to wait for transactions
  420. 20:07to make it into at least one block,
  421. 20:09or get one confirmation, before considering it final. And for larger
  422. 20:12transactions, wait for at least six blocks.
  423. 20:14In light of BTC guild's ability to solve six blocks in a row,
  424. 20:18you might want to wait even longer. By design,
  425. 20:21each block takes about 10 minutes to solve, so waiting for six blocks would
  426. 20:24take about an hour.
  427. 20:26Compared to the several seconds a credit card transaction takes, waiting this long
  428. 20:29for confirmations may seem burdensome,
  429. 20:32but keep in mind that credit card customers can claim a stolen card
  430. 20:35months later to have charges reversed from merchants (card chargebacks),
  431. 20:39so Bitcoin is actually much faster from a merchant's perspective.
  432. 20:42The particular choice of 10 minutes was somewhat arbitrary, but extremely short
  433. 20:46times could lead to instability,
  434. 20:48and longer ones would delay confirmations. As more computers join
  435. 20:51the network,
  436. 20:52and specialized hardware is designed specifically for mining,
  437. 20:55the block solution time would get very small. To compensate, every two weeks
  438. 20:59all the Bitcoin software recalibrates the difficulty of the math problem to
  439. 21:03target 10 minutes.
  440. 21:04For comparison, a similar digital currency called Litecoin has been able
  441. 21:08to operate with a two-and-a-half minute block time.
  442. 21:12In summary, Bitcoin is a mathematically protected digital currency that is
  443. 21:15maintained by a network of peers.
  444. 21:17Digital signatures authorize individual transactions,
  445. 21:21ownership is passed via transaction chains, and the ordering at those
  446. 21:24transactions is protected in the block chain.
  447. 21:26By requiring difficult math problems to be solved with each block,
  448. 21:30would-be attackers are pitted against the entire rest to the network in a
  449. 21:33computational race they're unlikely to win.
  450. 21:35Bitcoin promises many interesting ideas,
  451. 21:39such as insulation from government meddling, anonymity,
  452. 21:42and potentially lower transaction fees. It also has many challenges,
  453. 21:45as it is currently very difficult to exchange Bitcoins for other currencies,
  454. 21:49and has been cited as a haven for illegal activity and tax evasion,
  455. 21:53so governments might try to ban it. Also the mathematical race that protects the block
  456. 21:57chain uses a substantial amount of electricity.
  457. 21:59If you'd like to view a written version of this video
  458. 22:03you can find one on my personal blog: imponderablethings.com
  459. 22:06The blog also has some additional explanations of the math behind the
  460. 22:10digital signatures and cryptographic hashes that underlie the system.

About this transcript

This page contains the full transcript of How Bitcoin Works Under the Hood by CuriousInventor, generated from the public captions YouTube serves with the video. The transcript has 4,409 words across 460 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.

What you can do with it

Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.

Free YouTube transcript tool

YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.