Commit 0b59160
committed
Merge rust-bitcoin#2806: Make Address:p2sh_from_hash public
7466382 Make Address:p2sh_from_hash public (Tobin C. Harding)
Pull request description:
We previously made this function Private and added a comment that doing so was somehow better to remove the footgun of hashing the wrong length script. However in hindsight this was a bad idea and users want the functionality.
Make the `Address:p2sh_from_hash` public and document it as we do for `Address::p2sh`.
This is a backport of patch 1 from rust-bitcoin#2795, patch 2 is an update to api files which don't exist on the `\0.32.x` release branch.
ACKs for top commit:
apoelstra:
ACK 7466382
Tree-SHA512: 880ae255c332920b320cd51a633f6260ee5e3121671e49c8ae9c0f10f7d53dfff472a3cb4aca76ae96d00b5ef409362c1233926264370a89816c48a83395fab01 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
384 | 384 | | |
385 | 385 | | |
386 | 386 | | |
387 | | - | |
388 | | - | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
389 | 394 | | |
390 | 395 | | |
391 | 396 | | |
| |||
0 commit comments