mirror of
https://github.com/bitcoinbook/bitcoinbook
synced 2024-11-29 19:38:25 +00:00
Fix BTC to satoshi calc
1,000,000 satoshi = 0.01 BTC so the example should be 0.15 BTC = 15,000,000 satoshi
This commit is contained in:
parent
5e5364f262
commit
d504b51d21
@ -156,7 +156,7 @@ See if you can manually decode Alice's transaction from the serialized hexadecim
|
||||
Here are some hints:
|
||||
|
||||
* 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+
|
||||
* The +scriptPubKey+ length is 25 bytes, which is +19+ in hexadecimal
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user