From 43a86c023ba6d5be75d3bfc538ae5f50a6aa9246 Mon Sep 17 00:00:00 2001 From: Shannon Appelcline Date: Tue, 13 Jun 2017 11:50:47 -0700 Subject: [PATCH] Create 08_2_Building_the_Structure_of_P2SH.md --- 08_2_Building_the_Structure_of_P2SH.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/08_2_Building_the_Structure_of_P2SH.md b/08_2_Building_the_Structure_of_P2SH.md index a545c52..1cb6f1c 100644 --- a/08_2_Building_the_Structure_of_P2SH.md +++ b/08_2_Building_the_Structure_of_P2SH.md @@ -71,7 +71,7 @@ To complete your serialization, you translate the hexcode into binary. On the co ## Analyze a P2SH Multisig -To better understand this process, we will reverse-engineer the P2SH multisig that we created in [§6.1: Sending a Transaction to a Multisig](6_1_Sending_a_Transaction_to_a_Multisig.md). Take a look at the `redeemScript` that you used, which you now know is the hex-serialized version of the locking script: +To better understand this process, we will reverse-engineer the P2SH multisig that we created in [§6.1: Sending a Transaction to a Multisig](06_1_Sending_a_Transaction_to_a_Multisig.md). Take a look at the `redeemScript` that you used, which you now know is the hex-serialized version of the locking script: ``` 52210307fd375ed7cced0f50723e3e1a97bbe7ccff7318c815df4e99a59bc94dbcd819210367c4f666f18279009c941e57fab3e42653c6553e5ca092c104d1db279e328a2852ae ``` @@ -133,6 +133,10 @@ Note that the `hex scriptPubKey` for P2SH Script transaction will _always_ start Actually creating the P2SH locking script dives further into the guts of Bitcoin than you've ever gone before. Though it's helpful to know how all of this works at a very low level, it's most likely that you'll have an API taking care of all of the heavy-lifting for you. Your task will simply be to create the Bitcoin Script to do the locking ... which is the main topic of chapters 7 and 9-10. +## What's Next? + +Continue "Embedding Bitcoin Scripts" with [§8.3: Running a Bitcoin Script with P2SH](08_3_Running_a_Bitcoin_Script_with_P2SH.md). + ## Appendix: The Integer Conversion Script The following script collects the complete methodology for changing an integer between -2147483647 and 2147483647 to a little-endian signed-magnitude representation in hex: