Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [mastering-bitcoin]

Collects questions about the content of Antonopoulos's Mastering Bitcoin.

0
votes
1answer
38 views

Create master public key after HMAC-SHA512

I have that result after hash_pbkdf2 5B56C417303FAA3FCBA7E57400E120A0CA83EC5A4FC9FFBA757FBE63FBD77A89A1A3BE4C67196F57C39A88B76373733891BFABA16ED27A813CEED498804C0570 left 256 bits are: ...
5
votes
1answer
108 views

How does copying main stack prevent malformed unlocking scripts vulnerabilities?

https://github.com/bitcoinbook/bitcoinbook/blob/develop/ch06.asciidoc In the original bitcoin client, the unlocking and locking scripts were concatenated and executed in sequence. For security ...
1
vote
1answer
48 views

(Mastering Bitcoin) When sending a raw transaction, why is the receiver included in the details hash as a “send” transaction?

I'm working my way through Mastering Bitcoin. The author made a transaction to send 0.05 BTC from one address to another (http://chainquery.com/bitcoin-api/getrawtransaction/...
0
votes
2answers
90 views

Extended Public Key 's mechanism misinterpreting in 'Mastering Bitcoin' by Andreas

I am a newbie and start exploring from the 'Mastering Bitcoin' book. The figure below to me is a little inaccurate, I think the arrow from HMAC-SHA256 should point right to the child public key. Am I ...
3
votes
1answer
296 views

Bitcoind with -txindex=1 still no mempool transactions

I'm reading through Mastering Bitcoin and trying to follow along the examples. When I first initialized bitcoind, I set txindex=1 in my bitcoin.conf file. In a later example I was unable to ...
0
votes
1answer
428 views

BIP32 HD Wallets: HMAC vs. “just” Hashing the Seed

In A. Antonopoulus' Mastering Bitcoin (2nd edition) on page 106, there is a nice illustration showing how the basis for a BIP32 HD Wallet is generated: So here is the one thing I don't understand ...
1
vote
2answers
641 views

Create Pay to Witness Script Hash in Pay to Script Hash Address

I'm trying to generate a multisignature, segwit compatible address as a P2WSH nested in BIP16 P2SH as described in BIP141. Basically, I want to construct a P2WSH-nested-in-P2SH address from n public ...
1
vote
1answer
363 views

A problem on difficulty equation

When I read this book Master Bitcoin, I have a problem in understanding the "Difficulty" in Chapter 8. There is a equation of difficulty: New Difficulty = Old Difficulty * (Actual Time of Last ...
2
votes
1answer
264 views

What is 'spendability of coinbase transaction after 100 blocks' in Mastering Bitcoin referring to?

Ch7 of the book writes at the end of the Introduction section: "After 100 blocks back there is so much stability that the coinbase transaction—the transaction containing newly mined bitcoins—can be ...
1
vote
2answers
307 views

How was 59 days determined with 1 TH/sec from “Mastering Bitcoin”

In Mastering Bitcoin in the section on Difficulty Bits Andreas notes: This means that a valid block for height 277,316 is one that has a block header hash that is less than the target. In binary ...
2
votes
1answer
404 views

What is criteria of mining priority except for transaction-fee?

I am reading "Mastering Bitcoin written by Andreas" and I found this explanation of mining. Transactions are added to the new block, prioritized by the highest-fee transactions first and a few ...