File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,8 @@ pub struct DecodeScript {
101
101
pub addresses : Vec < Address < NetworkUnchecked > > ,
102
102
/// Address of P2SH script wrapping this redeem script (not returned if the script is already a P2SH).
103
103
pub p2sh : Option < Address < NetworkUnchecked > > ,
104
+ /// Address of the P2SH script wrapping this witness redeem script
105
+ pub p2sh_segwit : Option < String > ,
104
106
}
105
107
106
108
/// Models the result of JSON-RPC method `descriptorprocesspsbt`.
Original file line number Diff line number Diff line change @@ -307,6 +307,7 @@ impl DecodeScript {
307
307
required_signatures : self . required_signatures ,
308
308
addresses,
309
309
p2sh,
310
+ p2sh_segwit : self . p2sh_segwit ,
310
311
} )
311
312
}
312
313
}
Original file line number Diff line number Diff line change @@ -219,6 +219,9 @@ pub struct DecodeScript {
219
219
pub p2sh : Option < String > ,
220
220
/// Segwit data (see `DecodeScriptSegwit` for explanation).
221
221
pub segwit : Option < DecodeScriptSegwit > ,
222
+ /// Address of the P2SH script wrapping this witness redeem script
223
+ #[ serde( rename = "p2sh-segwit" ) ]
224
+ pub p2sh_segwit : Option < String > ,
222
225
}
223
226
224
227
/// Seemingly undocumented data returned in the `segwit` field of `DecodeScript`.
@@ -238,6 +241,7 @@ pub struct DecodeScriptSegwit {
238
241
/// List of bitcoin addresses.
239
242
pub addresses : Option < Vec < String > > ,
240
243
/// Address of P2SH script wrapping this redeem script (not returned if the script is already a P2SH).
244
+ #[ serde( rename = "p2sh-segwit" ) ]
241
245
pub p2sh_segtwit : Option < String > ,
242
246
}
243
247
You can’t perform that action at this time.
0 commit comments