Commit 8bc9400
committed
tr: add conversion from TrSpendInfo to bitcoin::TapTree
Moves a bit of ugly logic out of the PSBT module into the spendinfo
module so that it's available for other users. We can convert from a
TrSpendInfo to a bitcoin::TapTree but we can't do the opposite
conversion since TrSpendInfo expects to have a Miniscript for each leaf.1 parent 5fe2d25 commit 8bc9400
2 files changed
+26
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
192 | 214 | | |
193 | 215 | | |
194 | 216 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1109 | 1109 | | |
1110 | 1110 | | |
1111 | 1111 | | |
1112 | | - | |
1113 | 1112 | | |
1114 | 1113 | | |
1115 | 1114 | | |
1116 | | - | |
1117 | | - | |
1118 | | - | |
1119 | 1115 | | |
1120 | 1116 | | |
1121 | 1117 | | |
| |||
1141 | 1137 | | |
1142 | 1138 | | |
1143 | 1139 | | |
1144 | | - | |
1145 | | - | |
1146 | | - | |
1147 | | - | |
1148 | | - | |
1149 | | - | |
1150 | | - | |
1151 | | - | |
1152 | | - | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
1153 | 1144 | | |
1154 | 1145 | | |
1155 | 1146 | | |
| |||
0 commit comments