0ab5eeac81
We do this all over the place in rust-lightning, and its probably the most common thing to do with a `Witness` so I figured I'd upstream the util method to do this. It also avoids an allocation compared to the naive approach of `SerializedSignature.to_vec()` with two pushes, which is nice. |
||
---|---|---|
.. | ||
block.rs | ||
constants.rs | ||
mod.rs | ||
opcodes.rs | ||
script.rs | ||
transaction.rs | ||
witness.rs |