From c62fbd6a2a59d3e6a19e5ffb3463937d6afbfbd6 Mon Sep 17 00:00:00 2001 From: Shannon Appelcline Date: Tue, 23 May 2017 15:30:11 -0700 Subject: [PATCH] Update 8_5_Spending_a_Transaction_with_a_Bitcoin_script.md --- ...ending_a_Transaction_with_a_Bitcoin_script.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/8_5_Spending_a_Transaction_with_a_Bitcoin_script.md b/8_5_Spending_a_Transaction_with_a_Bitcoin_script.md index f329d5b..27f8afc 100644 --- a/8_5_Spending_a_Transaction_with_a_Bitcoin_script.md +++ b/8_5_Spending_a_Transaction_with_a_Bitcoin_script.md @@ -1,14 +1,22 @@ -> **WARNING:** The lack of any code Script interpretors is currently halting this section. +> **WARNING:** This chapter is awaiting the writing of chapter 12+ # 8.5: Spending a Transaction with a Bitcoin Script -Before we close out an overview of P2SH transactions, it's worth briefly discussing how to spend them! +> **NOTE:** This is a draft in progress, so that I can get some feedback from early reviewers. It is not yet ready for learning. + +Before we close out this overview of P2SH transactions, we're going to touch upon how to spend them. ## Use the Redeem Script -As we saw in [§6.2: Spending a Transaction to a Multisig](6_2_Spending_a_Transaction_to_a_Multisig.md), spending a P2SH transaction is all about having that serialized version of the locking script, the so-called _redeemScript_. So, the first step to being able to spend a P2SH transaction is ensuring that you save the _redeemScript_ before you give out the P2SH address to everyone. +As we saw in [§6.2: Spending a Transaction to a Multisig](6_2_Spending_a_Transaction_to_a_Multisig.md), spending a P2SH transaction is all about saving that serialized version of the locking script, the so-called _redeemScript_. So, the first step to being able to spend a P2SH transaction is making sure that you save the _redeemScript_ before you give out the P2SH address to everyone. -Because P2SH addresses aren't integrated into `bitcoin-cli` there will be no short-cuts as you saw in [§6.3: Sending an Automated Multisig](6_3_Sending_an_Automated_Multisig.md). You're going to need to collect all the more complex variables on your own! +### Collect Your Variables + +Because P2SH addresses aren't integrated into `bitcoin-cli` there will be no short-cuts like you saw in [§6.3: Sending an Automated Multisig](6_3_Sending_an_Automated_Multisig.md). You're going to need to collect all the more complex variables on your own! + +[[PENDING]] + +[[Notes: Example of saving redeemScript, recipient, keys, and scriptPubKey.]] ## Create the Transaction