mirror of
https://github.com/ChristopherA/Learning-Bitcoin-from-the-Command-Line.git
synced 2025-06-07 07:56:31 +00:00
Update 08_2_Building_the_Structure_of_P2SH.md
This commit is contained in:
parent
de2d4dc2f0
commit
a7b1e078cb
@ -1,6 +1,6 @@
|
|||||||
# 8.2: Building the Structure of P2SH
|
# 8.2: Building the Structure of P2SH
|
||||||
|
|
||||||
> **NOTE:** This is a draft in progress, so that I can get some feedback from early reviewers. It is not yet ready for learning.
|
> :information_source: **NOTE:** This is a draft in progress, so that I can get some feedback from early reviewers. It is not yet ready for learning.
|
||||||
|
|
||||||
In the previous section we overviewed the theory of how to create P2SH transactions to hold Bitcoin Scripts. The actual practice of doing so is _much more difficult_, but for the sake of completeness, we're going to look at it here. This is probably not something you'd ever do without an API, so if it gets to intimidating, be aware that we'll returning to pristine, high-level Scripts in a moment.
|
In the previous section we overviewed the theory of how to create P2SH transactions to hold Bitcoin Scripts. The actual practice of doing so is _much more difficult_, but for the sake of completeness, we're going to look at it here. This is probably not something you'd ever do without an API, so if it gets to intimidating, be aware that we'll returning to pristine, high-level Scripts in a moment.
|
||||||
|
|
||||||
@ -141,7 +141,7 @@ Continue "Embedding Bitcoin Scripts" with [§8.3: Running a Bitcoin Script with
|
|||||||
|
|
||||||
The following script collects the complete methodology for changing an integer between -2147483647 and 2147483647 to a little-endian signed-magnitude representation in hex:
|
The following script collects the complete methodology for changing an integer between -2147483647 and 2147483647 to a little-endian signed-magnitude representation in hex:
|
||||||
|
|
||||||
> **WARNING:** This script has not been robustly checked. If you are going to use it to create real locking scripts you should make sure to double-check and test your results.
|
> :warning: **WARNING:** This script has not been robustly checked. If you are going to use it to create real locking scripts you should make sure to double-check and test your results.
|
||||||
```
|
```
|
||||||
file: integer2lehex.sh
|
file: integer2lehex.sh
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
Loading…
x
Reference in New Issue
Block a user