| 11 | }; |
| 12 | |
| 13 | pub trait PreSignedTransaction { |
| 14 | fn tx(&self) -> &Transaction; |
| 15 | fn tx_mut(&mut self) -> &mut Transaction; |
| 16 | fn prev_outs(&self) -> &Vec<TxOut>; |
| 17 | fn prev_scripts(&self) -> &Vec<ScriptBuf>; |
| 18 | } |
| 19 | |
| 20 | pub fn pre_sign_p2wsh_input<T: PreSignedTransaction>( |
| 21 | tx: &mut T, |
nothing calls this directly
no outgoing calls
no test coverage detected