Skip to content

Commit a458507

Browse files
committed
Minor text improvements to p2sh and p2pkh
Be explicit that hashlib is available in the Python sandbox The wrong input is being referenced in the text
1 parent 279be43 commit a458507

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

decoding/p2pkh-exercise1.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ export default P2PKHGame;`
332332
trinketUrl="https://trinket.io/embed/python3/1773afc06cd7"
333333
/>
334334

335-
For this exercise, we've provided the `crypto-js` library to help with the hashing operations. You should use this library to implement the P2PKH ScriptPubKey function.
335+
For this exercise, we've provided the `crypto-js` (JavaScript) and `hashlib` (Python) libraries to help with the hashing operations. You should use the relevant library to implement the P2PKH ScriptPubKey function.
336336

337337
You can look up the hex characters for each op_code in the [Bitcoin Script wiki page](https://en.bitcoin.it/wiki/Script).
338338

decoding/p2sh-exercise-1.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ export default P2SHGame;`
319319
trinketUrl="https://trinket.io/embed/python3/9d0aa927edf2"
320320
/>
321321

322-
For this exercise, we've provided the `crypto-js` library to help with the hashing operations. You should use this library to implement the P2SH ScriptPubKey function.
322+
For this exercise, we've provided the `crypto-js` (JavaScript) and `hashlib` (Python) libraries to help with the hashing operations. You should use the relevant library to implement the P2SH ScriptPubKey function.
323323

324324
You can look up the hex characters for each op_code in the [Bitcoin Script wiki page](https://en.bitcoin.it/wiki/Script).
325325

decoding/p2sh.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ When either Alice or Bob wants to spend the funds, they must provide the redeem
113113
showLineNumbers={true}
114114
/>
115115

116-
Click on input 1 to see this in action
116+
Click on input 3 to see this in action
117117

118118
<TransactionsDisplay
119119
rawTx="0100000003a5ee1a0fd80dfbc3142df136ab56e082b799c13aa977c048bdf8f61bd158652c000000006b48304502203b0160de302cded63589a88214fe499a25aa1d86a2ea09129945cd632476a12c022100c77727daf0718307e184d55df620510cf96d4b5814ae3258519c0482c1ca82fa0121024f4102c1f1cf662bf99f2b034eb03edd4e6c96793cb9445ff519aab580649120ffffffff0fce901eb7b7551ba5f414735ff93b83a2a57403df11059ec88245fba2aaf1a0000000006a47304402204089adb8a1de1a9e22aa43b94d54f1e54dc9bea745d57df1a633e03dd9ede3c2022037d1e53e911ed7212186028f2e085f70524930e22eb6184af090ba4ab779a5b90121030644cb394bf381dbec91680bdf1be1986ad93cfb35603697353199fb285a119effffffff0fce901eb7b7551ba5f414735ff93b83a2a57403df11059ec88245fba2aaf1a0010000009300493046022100a07b2821f96658c938fa9c68950af0e69f3b2ce5f8258b3a6ad254d4bc73e11e022100e82fab8df3f7e7a28e91b3609f91e8ebf663af3a4dc2fd2abd954301a5da67e701475121022afc20bf379bc96a2f4e9e63ffceb8652b2b6a097f63fbee6ecec2a49a48010e2103a767c7221e9f15f870f1ad9311f5ab937d79fcaeee15bb2c722bca515581b4c052aeffffffff02a3b81b00000000001976a914ea00917f128f569cbdf79da5efcd9001671ab52c88ac80969800000000001976a9143dec0ead289be1afa8da127a7dbdd425a05e25f688ac00000000"

0 commit comments

Comments
 (0)