Skip to content

Commit 1cb56d1

Browse files
authored
Merge pull request #66 from jrakibi/fix-signing-steps
fix steps
2 parents 8352e09 + a2c4f72 commit 1cb56d1

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

decoding/transaction-signing.mdx

+12-6
Original file line numberDiff line numberDiff line change
@@ -98,16 +98,22 @@ Below is the complete transaction data. You can refer back to this whenever you
9898

9999
## Steps We'll Follow
100100

101-
1. Create Basic Transaction Structure
101+
0. Create Base Transaction
102102

103-
2. Prepare BIP143 Signing Data
103+
1. Adding Inputs
104104

105-
3. Create Preimage
105+
2. Adding Outputs
106106

107-
4. Generate Signature
107+
3. Generate ScriptCode
108108

109-
5. Build Witness Data
109+
4. Calculate Transaction Digest
110110

111-
6. Assemble Final Transaction
111+
5. Calculate Preimage and Sighash
112+
113+
6. Generate and Encode the Signature
114+
115+
7. Add Witness Field
116+
117+
8. Assemble Final Transaction
112118

113119
Each step will be explained in detail in the following sections, with code examples and tests using this exact transaction data.

0 commit comments

Comments
 (0)