Commit 239e61e
committed
Merge #299: Allow constructing Sh descriptors wrapping an existing Wsh/Wpkh
bd7c642 Allow constructing Sh descriptors wrapping an existing Wsh/Wpkh (Nadav Ivgi)
Pull request description:
Useful if you already have an `W{s,pk}h` descriptor and wish to wrap it with P2SH.
This used to be [possible](https://github.com/shesek/minsc/blob/33433462e84e3903a70a9aac6f47e591df094127/src/stdlib/miniscript.rs#L149-L153) before the new inner types for the Descriptor enum variants, which has private fields that cannot be initialized externally.
ACKs for top commit:
apoelstra:
ACK bd7c642
sanket1729:
ACK bd7c642
Tree-SHA512: c89f77d4cc8bcbda39f48361fc0693a7731ab2202f487dace44ab612fcdbd011476e6fbe79f1d429f10f9b1ea7e8ea1b164592e77e901030cec39f82dd764c022 files changed
+26
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
280 | 292 | | |
281 | 293 | | |
282 | 294 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
178 | 185 | | |
179 | 186 | | |
180 | 187 | | |
| |||
191 | 198 | | |
192 | 199 | | |
193 | 200 | | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
194 | 208 | | |
195 | 209 | | |
196 | 210 | | |
| |||
0 commit comments