Mining Bitcoin: Solving the Puzzle

Поделиться
HTML-код
  • Опубликовано: 6 июн 2024
  • Andreas explains how mining Bitcoin involves hashing, puzzle-solving, and a special number called the nonce.
    0:00 What miners do to solve the mining puzzle?
    0:16 The miners use a hashing algorithm called SHA 256 to produce a hash
    1:02 The miners takes the block header from the candidate block
    1:43 There's a special number in there called the nonce
    2:03 How difficult is it to solve the puzzle?
    2:33 Summary: What is the miner doing?
    What is a Monthly Q&A Community Builder Livestream?
    Once a month, Andreas answers community questions on anything related to Bitcoin, Ethereum, the Lightning Network, really anything related to open blockchains. He’s live on RUclips for about an hour, answering the best questions asked by Community Builders on Patreon, Community Members on RUclips, and anyone who shows up during the event.
    How can I ask questions and vote?
    You’re welcome to ask your question at the next Livestream event. You can find out when it is by subscribing to the channel and turning on notifications or by visiting this playlist: • Best of Recent Videos .
    Community Builders who support this free work on Patreon get to ask questions and vote on questions at least a week before the event. RUclips Community Members who support this work get to ask questions and vote an hour before the event starts. Everyone else gets to ask questions and vote on questions when the event starts. Giving early access is a small way Andreas can give something to the people who help to financially support the mission and still include anyone who wants to participate.
    SUBSCRIBE to this RUclips channel and select the bell 🔔 for notifications: / @aantonop
    JOIN this RUclips channel to become a RUclips Community Member and access custom emojis and other perks: / @aantonop
    BECOME a Community Builder: / aantonop
    You may already know that Andreas’ mission is to educate as many people as possible about Bitcoin and open blockchain technologies. Watching and sharing these videos is one way to do that. Thank you for being part of this mission!
    About aantonop: Andreas isn't promoting a company or an organization; he's paid by the community (people who support this work on Patreon and RUclips) and provides an unbiased look at open blockchain technologies, what they can do for our societies, and how to get involved (if you decide you want to). Learn more at aantonop.com
    **Learn More From Andreas’ Workshops, Books & Events*
    Amazon & Kindle: www.amazon.com/-/e/B00MVAG8Z8
    Audible: www.audible.com/author/Andrea...
    E-books & Merch: aantonop.io/shop
    Patreon: / aantonop
    Website: aantonop.com
    Workshops: aantonop.com/workshops
    **Connect with Andreas on Socials**
    Facebook: / andreasmantonopoulos
    Instagram: / amantonop
    LinkedIn: / aantonop
    Twitter: / aantonop
    Thanks for watching!
    #Bitcoin #BitcoinEducation #BitcoinMining
  • НаукаНаука

Комментарии • 57

  • @EmpireBuilding
    @EmpireBuilding 2 года назад +7

    This explanation was sooo much better than "They solve complex problems." I learned something new about Bitcoin today. Thank you.

  • @ricsike7842
    @ricsike7842 2 года назад +5

    So how and why is this keep on being explained as "solving a puzzle"??!! It's not, it's simply what he described here. Seems very few actually know this part, so each person just repeats what they've heard from another..."solving a puzzle". In a wider topic already so complex to fully understand, yet so many interested in studying it, why is this small aspect of hashing being isolated like this and explained like the audience are babies that won't be able to grasp this simple construct!! Finally, thanks for the clear and "honest" explanation! (And here I was thinking we've got 1000s of miners trying to solve massive Rubik's cubes or something lol)

  • @DiscoverCrypto1
    @DiscoverCrypto1 2 года назад +3

    There's so much knowledge that Andreas offers. EVERYONE who cares about financial freedom needs to watch his videos.

  • @dannywayne311
    @dannywayne311 2 года назад +3

    The hero we don’t deserve, thank you good sir

  • @onlymoney526
    @onlymoney526 2 года назад +11

    Perfectly explained thank you!

  • @aromax504
    @aromax504 2 года назад +3

    We have to protect this man at all cost

  • @davearthur8656
    @davearthur8656 2 года назад +2

    Thanks for the technical breakdown.....you the best at it.

  • @christianleetrager4605
    @christianleetrager4605 Год назад +1

    Finally someone has explained it! Thanks!

  • @ricardosoares2706
    @ricardosoares2706 2 года назад +1

    Thanks for explanations again!

  • @vt3330
    @vt3330 2 года назад +5

    Well explained 👏

  • @Reizermo
    @Reizermo Месяц назад

    The more I hear about how complicated Bitcoin is, the more I think....there's no way one person created it. It seems so complicated and smart.

  • @lesliescurates
    @lesliescurates 2 года назад +1

    Brilliant as always. 🤩

  • @jabibgalt5551
    @jabibgalt5551 2 года назад +2

    Thank you!

  • @majiddehbi9186
    @majiddehbi9186 2 года назад +2

    hello , sir thanks for u expl but what about byzantine generals problem here in the hashing algo thx anyway

  • @jonathanlivingston7358
    @jonathanlivingston7358 Год назад

    Amazing explanation

  • @user-vt2ul6yc6l
    @user-vt2ul6yc6l 2 года назад +2

    Andreas, how do you count the number of full nodes in Bitcoin? I'm wondering how many full nodes does Dash have? Information is only available on Dash masternodes, but there are many volunteer running full Dash nodes like in Bitcoin

  • @daviddibacco5770
    @daviddibacco5770 2 года назад +1

    thanks for explaining! is any of this done manually? or is it simply just a matter for plugging in and running the software?

    • @Adam-ug7zn
      @Adam-ug7zn 2 года назад +1

      It's done automatically using mining software but is technically possible to do on pen and paper as it's "just" math, although it would be so slow that the likelihood you could find the correct hash before somebody else is essentially 0.

  • @mentalist417
    @mentalist417 8 месяцев назад

    How do we know which hash is suitable for the solution? the one which has more zeroes in the beginning? If yes, what is the reason for that?

  • @levivandenboogart8388
    @levivandenboogart8388 2 года назад +2

    What if there's a block, where there is no nonce that gives the required # of 0's? Is it possible? Can we prove it's impossible? I need more brain-power on this theoretical question.

  • @Happytruth
    @Happytruth 2 года назад +1

    If the SHA number can be more difficult to find from time to time how then do blocks on the Ledger guarantee they’ll be solved every 10 mins give or take? What happens if they can’t find the number needed to verify the block with the 10 minute time?
    BTW stellar knowledge and one of the best people in this space period thanks Andreas.

    • @SAL-fs1mr
      @SAL-fs1mr 2 года назад +3

      If, over a period of about 2000 blocks, the average time between blocks is greater than 10 minutes, then the Bitcoin difficulty adjustment algorithm kicks in to make the mining easier to target an average of 10 minutes per block.

  • @hosamtayyeb6001
    @hosamtayyeb6001 2 года назад +1

    I have a qestion pls:
    For indiviual miners who mine through the pools, are they (the indiviuals) literaly do the mining process? OR they just provide the hash power to the pool in which the pool it self accumulates the hash powers and do the prosses of mining ?

  • @marty590
    @marty590 2 года назад +1

    Mr. A
    How does a Trezor generate a random private key? In my experience as a programmer you would use a random number generator based on a seed but how does a Trezor do it?
    Also, although highly unlikely, what happens if the private key generated is not unique so that the public key wallet contains someone elses btc?
    Thks.

    • @howboutno2776
      @howboutno2776 2 года назад +1

      In simple terms, Trezor generates 256bit number (number starting with 10 and 77 x 0 after) , then computer generates its own 256bit number, then it is hashed together by SHA-256.
      Then it does checksum to verify sequence integrity - hash by SHA-256 - then by adding first 8 numbers of Trezor-generated random number and adding them to the end of the number => producing 264bit number. This 264bit number is divided into 24 parts (each one 11bits long - 0 to 2047) and each part gets its english word according to the BIP-39 standard.
      Private keys are generated based on this seed + passphrase if you have set it.
      This is so enourmous entropy, that you can't even slightly imagine. So yeah, nobody's going to have the same seed as you do, if they use software which has correctly implemented random number generation.
      If by a greeeeeeeeat miracle you end up generating the same private key to the address (hash of a public key which is generated from private key), then you can spend those coins on that address.

  • @EmaMazzi76
    @EmaMazzi76 2 года назад +2

    …there’s an aspect that keeps baffling my mind (even if I followed your lessons and read your book): all the header’s data are fixed except for 1. the nonce and 2. the time stamp; if we both start mining at the same time (say 8 pm - 20.00 and zero seconds) then the one of us with more computing power will likely be the first to find the required nonce…but if one of us add extra time (say 1 second - 20.00.01) then the whole hash would be different as the nonces to produce the leading zeros required…if the average time (roughly 10 minutes) to find the nonce is encoded in the protocol and it’s auto-adjusted according to the speed of network, do miners explore all the possibilities of the next 10 minutes (plus the seconds) all at once? It would be great if you could make a video targeting and expanding this specific topic in depth. Thank you for the knowledge you have shared, no one else has done so much as you, both technically and conceptually

    • @Adam-ug7zn
      @Adam-ug7zn 2 года назад

      Miners "pick" a timestamp automatically and start mining so long as it's within the constraints of the protocol (a valid timestamp must be greater than the median timestamp of the previous 11 blocks.). The actual value of the specific timestamp is largely irrelevant as the difficulty already takes all of the components into account and, as you say, the generated hashes will be completely different with even a single bit changed. The likelihood of "winning" is the same for any given timestamp.

    • @EmaMazzi76
      @EmaMazzi76 2 года назад

      @@Adam-ug7zn Thank you for your reply Adam, have a great day 👍

  • @wildride1641
    @wildride1641 2 года назад +2

    Dear Andreas. Sometimes I saw an empty block containing only the coinbase tx. Could you please explain this phenomenon. Thank you

  • @Freddan0
    @Freddan0 2 года назад +2

    lel you forgot it contains tx as well

  • @arunv6159
    @arunv6159 10 месяцев назад

    miners are hashing to find a solution but solution for what exactly?

  • @frednuernberger2136
    @frednuernberger2136 2 года назад +1

    Why don´t the use just a lottery for all the miners who verified all transactions in the block correctly?

    • @SAL-fs1mr
      @SAL-fs1mr 2 года назад

      Because anyone can do that, so you won't converge on consensus. You need a proof of work puzzle so that there is only one winner per block, not many, that would be chaos.

    • @frednuernberger2136
      @frednuernberger2136 2 года назад +1

      @@SAL-fs1mr I understand how pow works. The question remains why not via a lottery only ONE miner gets the reward per block. Finding the nonce just is a "nonsense" brute force race which costs enormous amount of energy.

    • @SAL-fs1mr
      @SAL-fs1mr 2 года назад +1

      @@frednuernberger2136 without proof of work, what's to stop me from making tens of thousands of nodes to game the lottery in my favor?

  • @EduardoVencovsky
    @EduardoVencovsky 2 года назад +1

    If only one person wins the prize when it solves the puzzle, how can anyone mine and still get some money? Wouldn't that go to only one person?

    • @CarlosGarcia-bj2py
      @CarlosGarcia-bj2py 2 года назад +5

      There is a new block mined, on average, every ten minutes.
      Also, there are "mining pools" which allow miners to collaborate and share the rewards.

    • @howboutno2776
      @howboutno2776 2 года назад

      Basically what you can and should do is joining so-called mining "pool". Many people join their computers together and are working on solving it and if anyone of them finds it, the pool distributes bitcoins to the all miners that tried proportionally to the power they provided.

  • @spectra7gaming471
    @spectra7gaming471 2 года назад

    & honestly this is where I do have some doubts about the technology itself because it dosen't make sense to me that computers race to solve an algorithm and people/ miners are awarded with 12.5 btc

    • @SAL-fs1mr
      @SAL-fs1mr 2 года назад

      Just because you have trouble understanding it doesn't mean the technology is flawed.

    • @spectra7gaming471
      @spectra7gaming471 2 года назад

      @@SAL-fs1mr I didn't say it was flawed just that part doesn't make sense to me.

  • @nechar-joshi
    @nechar-joshi 2 года назад +4

    Thank you for making me even more confused.

  • @holodeckdragon8876
    @holodeckdragon8876 9 месяцев назад

    wow! look how different u looked a year ago. love u without the beard.

  • @JayCo-
    @JayCo- Год назад

    Can you make new videos please Andreas

  • @grildcheez1504
    @grildcheez1504 2 года назад +1

    Doesn't that mean if you don't have enough compute power you may not earn ANY bitcoin at all to even pay for the work you are doing since you never solved the puzzle.

    • @dutch-man
      @dutch-man 2 года назад +1

      If you solo mine, sure. Join a pool and you fix this issue.

    • @JavierSalcedoC
      @JavierSalcedoC 2 года назад

      Mining pools are older than the first exchanges. They are indispensable for the decentralization of the network. They also use open source protocols to connect with their peers and share rewards in a transparent way

    • @narumango22
      @narumango22 2 года назад

      If I understand correctly, yes

    • @howboutno2776
      @howboutno2776 2 года назад

      Basically what you can and should do is joining so-called mining "pool". Many people join their computers together and are working on solving it and if anyone of them finds it, the pool distributes bitcoins to the all miners that tried proportionally to the power they provided.

  • @poppyeva5787
    @poppyeva5787 2 года назад +1

    Crypto mining ⛏️ is never easy

  • @gamblingguru2235
    @gamblingguru2235 2 месяца назад

    I’ve been a miner for 10 years and only solved 2 to annoying

  • @trisnrik2245
    @trisnrik2245 2 года назад +3

    Bitcoin is only growing in importance
    And...it the one thing that is politics neutral!
    Wait did his guy say there is a Merkel bloc? I don't like the sound of that blck

  • @writecopymakemoney6601
    @writecopymakemoney6601 Год назад +1

    I can;t understand all this nerd talk

  • @ronfeltman8506
    @ronfeltman8506 2 года назад +1

    BTC heading to 20k, perhaps lower... GL everybody

    • @SAL-fs1mr
      @SAL-fs1mr 2 года назад +2

      I hope so, I want to stack more cheap satoshi's.

  • @CryptoCurrentOfficial
    @CryptoCurrentOfficial 2 года назад +2

    Great content! You can also come check out Crypto News & Information in our Channel!