MCPcopy Create free account
hub / github.com/BitVM/BitVM / sign_input_3

Method sign_input_3

bridge/src/transactions/take_1.rs:237–256  ·  view source on GitHub ↗
(
        &mut self,
        context: &VerifierContext,
        connector_b: &ConnectorB,
        secret_nonce: &SecNonce,
    )

Source from the content-addressed store, hash-verified

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;

Callers 1

pre_signMethod · 0.45

Calls 3

lenMethod · 0.80
finalize_input_3Method · 0.80

Tested by

no test coverage detected