(&self, leaf_index: u32)
| 49 | |
| 50 | impl TaprootConnector for ConnectorA { |
| 51 | fn generate_taproot_leaf_script(&self, leaf_index: u32) -> ScriptBuf { |
| 52 | match leaf_index { |
| 53 | 0 => self.generate_taproot_leaf_0_script(), |
| 54 | 1 => self.generate_taproot_leaf_1_script(), |
| 55 | _ => panic!("Invalid leaf index."), |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | fn generate_taproot_leaf_tx_in(&self, leaf_index: u32, input: &Input) -> TxIn { |
| 60 | match leaf_index { |
no test coverage detected