Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions decoding/transaction-signing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -98,16 +98,22 @@ Below is the complete transaction data. You can refer back to this whenever you

## Steps We'll Follow

1. Create Basic Transaction Structure
0. Create Base Transaction

2. Prepare BIP143 Signing Data
1. Adding Inputs

3. Create Preimage
2. Adding Outputs

4. Generate Signature
3. Generate ScriptCode

5. Build Witness Data
4. Calculate Transaction Digest

6. Assemble Final Transaction
5. Calculate Preimage and Sighash

6. Generate and Encode the Signature

7. Add Witness Field

8. Assemble Final Transaction

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