1
0
mirror of https://github.com/bitcoinbook/bitcoinbook synced 2025-01-11 16:20:57 +00:00

Merge pull request #226 from yurigeorgiev4/patch-1

Fix BTC to satoshi calc
This commit is contained in:
Will Binns 2017-01-15 19:39:38 -06:00 committed by GitHub
commit f38584a96c

View File

@ -156,7 +156,7 @@ See if you can manually decode Alice's transaction from the serialized hexadecim
Here are some hints: Here are some hints:
* There are two outputs in the highlighted section, each serialized as shown in the table <<tx_out_structure>> * There are two outputs in the highlighted section, each serialized as shown in the table <<tx_out_structure>>
* The value of 0.15 bitcoin is 1,500,000 satoshis. That's +16 e3 60+ in hexadecimal. * The value of 0.15 bitcoin is 15,000,000 satoshis. That's +16 e3 60+ in hexadecimal.
* In the serialized transaction, the value +16 e3 60+ is encoded in little-endian (least-significant-byte-first) byte order, so it looks like +60 e3 16+ * In the serialized transaction, the value +16 e3 60+ is encoded in little-endian (least-significant-byte-first) byte order, so it looks like +60 e3 16+
* The +scriptPubKey+ length is 25 bytes, which is +19+ in hexadecimal * The +scriptPubKey+ length is 25 bytes, which is +19+ in hexadecimal