Skip to content

Commit

Permalink
Minor text improvements to p2sh and p2pkh
Browse files Browse the repository at this point in the history
Be explicit that hashlib is available in the Python sandbox

The wrong input is being referenced in the text
  • Loading branch information
deadmanoz committed Jan 7, 2025
1 parent 279be43 commit a458507
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion decoding/p2pkh-exercise1.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ export default P2PKHGame;`
trinketUrl="https://trinket.io/embed/python3/1773afc06cd7"
/>

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.
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.

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

Expand Down
2 changes: 1 addition & 1 deletion decoding/p2sh-exercise-1.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ export default P2SHGame;`
trinketUrl="https://trinket.io/embed/python3/9d0aa927edf2"
/>

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.
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.

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

Expand Down
2 changes: 1 addition & 1 deletion decoding/p2sh.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ When either Alice or Bob wants to spend the funds, they must provide the redeem
showLineNumbers={true}
/>

Click on input 1 to see this in action
Click on input 3 to see this in action

<TransactionsDisplay
rawTx="0100000003a5ee1a0fd80dfbc3142df136ab56e082b799c13aa977c048bdf8f61bd158652c000000006b48304502203b0160de302cded63589a88214fe499a25aa1d86a2ea09129945cd632476a12c022100c77727daf0718307e184d55df620510cf96d4b5814ae3258519c0482c1ca82fa0121024f4102c1f1cf662bf99f2b034eb03edd4e6c96793cb9445ff519aab580649120ffffffff0fce901eb7b7551ba5f414735ff93b83a2a57403df11059ec88245fba2aaf1a0000000006a47304402204089adb8a1de1a9e22aa43b94d54f1e54dc9bea745d57df1a633e03dd9ede3c2022037d1e53e911ed7212186028f2e085f70524930e22eb6184af090ba4ab779a5b90121030644cb394bf381dbec91680bdf1be1986ad93cfb35603697353199fb285a119effffffff0fce901eb7b7551ba5f414735ff93b83a2a57403df11059ec88245fba2aaf1a0010000009300493046022100a07b2821f96658c938fa9c68950af0e69f3b2ce5f8258b3a6ad254d4bc73e11e022100e82fab8df3f7e7a28e91b3609f91e8ebf663af3a4dc2fd2abd954301a5da67e701475121022afc20bf379bc96a2f4e9e63ffceb8652b2b6a097f63fbee6ecec2a49a48010e2103a767c7221e9f15f870f1ad9311f5ab937d79fcaeee15bb2c722bca515581b4c052aeffffffff02a3b81b00000000001976a914ea00917f128f569cbdf79da5efcd9001671ab52c88ac80969800000000001976a9143dec0ead289be1afa8da127a7dbdd425a05e25f688ac00000000"
Expand Down

0 comments on commit a458507

Please sign in to comment.