(
&mut self,
context: &VerifierContext,
connector_b: &ConnectorB,
secret_nonce: &SecNonce,
)
| 235 | } |
| 236 | |
| 237 | fn sign_input_3( |
| 238 | &mut self, |
| 239 | context: &VerifierContext, |
| 240 | connector_b: &ConnectorB, |
| 241 | secret_nonce: &SecNonce, |
| 242 | ) { |
| 243 | let input_index = 3; |
| 244 | pre_sign_musig2_taproot_input( |
| 245 | self, |
| 246 | context, |
| 247 | input_index, |
| 248 | TapSighashType::All, |
| 249 | secret_nonce, |
| 250 | ); |
| 251 | |
| 252 | // TODO: Consider verifying the final signature against the n-of-n public key and the tx. |
| 253 | if self.musig2_signatures[&input_index].len() == context.n_of_n_public_keys.len() { |
| 254 | self.finalize_input_3(context, connector_b); |
| 255 | } |
| 256 | } |
| 257 | |
| 258 | fn finalize_input_3(&mut self, context: &dyn BaseContext, connector_b: &ConnectorB) { |
| 259 | let input_index = 3; |
no test coverage detected