1
0
mirror of https://github.com/bitcoinbook/bitcoinbook synced 2024-11-26 09:58:22 +00:00

Edited ch06.asciidoc with Atlas code editor

This commit is contained in:
nadams 2017-04-24 13:05:15 -07:00
parent 4075350103
commit 4b447a911d

View File

@ -142,7 +142,7 @@ The process of converting from the byte-stream representation of a transaction t
See if you can manually decode Alice's transaction from the serialized hexadecimal form, finding some of the elements we saw previously. The section containing the two outputs is highlighted to help you:
----
+0100000001186f9f998a5aa6f048e51dd8419a14d8a0f1a8a2836dd73+
+4d2804fe65fa35779000000008b483045022100884d142d86652a3f47+
+ba4746ec719bbfbd040a570b1deccbb6498c75c4ae24cb02204b9f039+
@ -153,6 +153,7 @@ See if you can manually decode Alice's transaction from the serialized hexadecim
*+8025513c3dbd2f7b92a94e0581f5d50f654e788acd0ef800000000000+*
*+1976a9147f9b1a7fb68d60c536c2fd8aeaa53a8f3cc025a888ac+*
+00000000+
----
Here are some hints:
@ -254,7 +255,7 @@ As with the outputs, let's see if we can find the inputs from Alice's transactio
Now, let's see if we can identify these fields in the serialized hex encoding:
----
+0100000001+*+186f9f998a5aa6f048e51dd8419a14d8a0f1a8a2836dd73+*
*+4d2804fe65fa35779000000008b483045022100884d142d86652a3f47+*
*+ba4746ec719bbfbd040a570b1deccbb6498c75c4ae24cb02204b9f039+*
@ -265,7 +266,7 @@ Now, let's see if we can identify these fields in the serialized hex encoding:
+8025513c3dbd2f7b92a94e0581f5d50f654e788acd0ef800000000000+
+1976a9147f9b1a7fb68d60c536c2fd8aeaa53a8f3cc025a888ac00000+
+000+
----
Hints:
@ -520,12 +521,11 @@ A digital signature is a _mathematical scheme_ that consists of two parts. The f
In bitcoin's implementation of the ECDSA algorithm, the "message" being signed is the transaction, or more accurately a hash of a specific subset of the data in the transaction (see <<sighash_types>>). The signing key is the user's private key. The result is the signature:
[latexmath]
++++
latexmath:[
\begin{equation}
(Sig = F_sig(F_hash(m), dA\)
\end{equation}
++++
]
where: