What is the nonce? Is it possible guess it on the first try? How is the nonce found in mining pools? When a miner wins the block reward, how does the block know which address to pay? When does a miner transmit a block to the network?

CORRECTION: At 18:03, I said that the chances of rolling dice below nine is the same as rolling below five. This is incorrect. It is easier to roll below nine because there are more possible outcomes.

These questions are from the third session of MOOC 11, which took place on February 14th 2019. If you want early-access to talks and a chance to participate in the monthly live Q&As with Andreas, become a patron: https://www.patreon.com/aantonop

RELATED:
Consensus Algorithms, Blockchain Technology, and Bitcoin – https://youtu.be/fw3WkySh_Ho
Advanced Bitcoin Scripting Part 1: Transactions and Multisig – https://youtu.be/8FeAXjkmDcQ
Advanced Bitcoin Scripting Part 2: SegWit, Consensus, and Trustware – https://youtu.be/pQbeBduVQ4I
What is Consensus: Rules without Rulers – https://youtu.be/2tqo7PX5Pyc
Forkology: A Study of Forks for Newbies – https://youtu.be/rpeceXY1QBM
Bitcoin: Where the Laws of Mathematics Prevail – https://youtu.be/HaJ1hvon0E0
Software distribution security – https://youtu.be/_V0vqy046YM
What is mining? – https://youtu.be/t4p4iMqmxbQ
The mining process – https://youtu.be/L4Xtau0YMJw
Nonces, mining, and quantum computing – https://youtu.be/d4xXJh677J0
Miners, pools, and consensus – https://youtu.be/JHz7LM4ncLw
What is difficulty targeting? – https://youtu.be/h429LCTRmQw
Genesis block and coinbase transactions – https://youtu.be/strhfzJ56QE
Cryptographic primitives – https://youtu.be/RIckQ6RBt5E
The rules of Bitcoin (part 1) – https://youtu.be/VnQu4uylfOs
The rules of Bitcoin (part 2) – https://youtu.be/vtIp0GP4w1E
Rules versus rulers – https://youtu.be/9EEluhC9SxE
The value of proof-of-work – https://youtu.be/ZDGliHwstM8
Migrating to post-quantum cryptography – https://youtu.be/dkXKpMku5QY
Could a state-sponsored 51% attack work? – https://youtu.be/KUd8ZGgm6Qo
Honest nodes and consensus – https://youtu.be/KAhY2ymI-tg
Spam transactions and Child Pays For Parent (CPFP) – https://youtu.be/t3c0E4fkSNs
Is Bitcoin a democracy? – https://youtu.be/TC3Hq76UT5g
Decentralized power, leaderless governance – https://youtu.be/E5VbDlQTPzU
Scaling, trust, and trade-offs – https://youtu.be/vCxmHwqyJWU
What is the role of nodes? – https://youtu.be/fNk7nYxTOyQ
Why running a node is important – https://youtu.be/oX0Yrv-6jVs
Lightning, full nodes, and miners – https://youtu.be/dlJG4OHdJzs
Running nodes and payment channels – https://youtu.be/ndcfBfE_yoY
What happens during a fork? – https://youtu.be/XBk8hBJ1xVo
Spam transactions and Child Pays For Parent (CPFP) – https://youtu.be/t3c0E4fkSNs
Energy consumption – https://youtu.be/2T0OUIW89II
Solar energy and mining in space – https://youtu.be/cusakcpa8AM
Bitmain and ASICBoost allegations – https://youtu.be/t6jJDD2Aj8k

Andreas M. Antonopoulos is a technologist and serial entrepreneur who has become one of the most well-known and respected figures in bitcoin.

Follow on Twitter: @aantonop https://twitter.com/aantonop
Website: https://antonopoulos.com/

He is the author of two books: “Mastering Bitcoin,” published by O’Reilly Media and considered the best technical guide to bitcoin; “The Internet of Money,” a book about why bitcoin matters.

Subscribe to the channel to learn more about Bitcoin & open blockchains; click on the red bell to enable notifications about new videos!

MASTERING BITCOIN, 2nd Edition: https://amzn.to/2xcdsY9

Translations of MASTERING BITCOIN: https://bitcoinbook.info/translations-of-mastering-bitcoin/

THE INTERNET OF MONEY, v1: https://amzn.to/2ykmXFs

THE INTERNET OF MONEY, v2: https://amzn.to/2IIG5BJ

Translations of THE INTERNET OF MONEY:
Spanish, ‘Internet del Dinero’ (v1) – https://amzn.to/2yoaTTq
French, ‘L’internet de l’argent’ (v1) – https://www.amazon.fr/Linternet-largent-Andreas-M-Antonopoulos/dp/2856083390
Russian, ‘Интернет денег’ (v1) – https://www.olbuss.ru/catalog/ekonomika-i-biznes/korporativnye-finansy-bankovskoe-delo/internet-deneg
Vietnamese, ‘Internet Của Tiền Tệ’ (v1) – https://alphabooks.vn/khi-tien-len-mang

MASTERING ETHEREUM (Q4): https://amzn.to/2xdxmlK

Music: “Unbounded” by Orfan (https://www.facebook.com/Orfan/)
Outro Graphics: Phneep (http://www.phneep.com/)
Outro Art: Rock Barcellos (http://www.rockincomics.com.br/)

source

19 COMMENTS

  1. Some watching this might wonder:
    When mining as part of a pool, if a participant finds a nonce that meets the difficulty target, why not just keep the whole reward themselves?

    This is is not possible because the block was constructed by the pool itself and has the pool's address in the (payout) coinbase transaction. By the time a miner finds a nonce, it is too late to change the coinbase transaction as that would change the hashed data and make the nonce invalid. Nice, eh?

  2. 18:06 The chances, for a single throw of the dice, of throwing below 9 are NOT the same as the chances of throwing below 5. That is the whole point of having a pool difficulty lower than the network difficulty. Andreas clearly knows this and just misspoke, but it might confuse people. Part of the genius, possibly unintended, of proof of work is this ability to create a mining pool that does not trust any of its workers to tell the truth. If a miner is mining in a pool, when the miner finds a nonce that produces a hash below the pool target, the miner submits that nonce to the pool. The pool verifies that in fact that nonce produces a hash below the pool target when used in the candidate block header, and credits the miner accordingly. Essentially, the miners are producing "proof of pool work" that they submit to the pool, and eventually one of those "proof of pool work" submissions is also good enough to be a "proof of work" for the larger network. I think this was incredibly important in terms of helping bitcoin become established, and it is a critical reason why mining is not as centralized as many think.

  3. Both adding numbers and shifting/shuffling bits are linear operations, without enough non-linear substitution ciphers it would be trivial to do cryptanalysis on the function (just look at Iota 🙂 ) and be able to reverse it.

  4. Mr Andreas i have been trying to reach you trough twitter but you have so many followers there is no hope in it. Please could you overview technology behind Bitfi DMA-2 wallet ? is it from technical perspective possible that private key never leave device after its generated for fraction of second ? they claim it only sign up the transaction and device never store any data itself. it has to be tested but please give me your opinion if this technology can actually work if its proven by hackers. thank you !

  5. Okay, my comment is wired but: i used to listen to hours of your MOOCs and other lectrues when they just started and (re)play Morrowind while at it.
    I've listened to you talking about nonces, hashes and other topics a million times, but in these vids i see you sitting in a room with a very Morrowind-esque art and interior design behind you, which MY GOSH feels so spot on!

LEAVE A REPLY

Please enter your comment!
Please enter your name here