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

Method sign_input_2

bridge/src/transactions/take_2.rs:225–244  ·  view source on GitHub ↗
(
        &mut self,
        context: &VerifierContext,
        connector_5: &Connector5,
        secret_nonce: &SecNonce,
    )

Source from the content-addressed store, hash-verified

223 }
224
225 fn sign_input_2(
226 &mut self,
227 context: &VerifierContext,
228 connector_5: &Connector5,
229 secret_nonce: &SecNonce,
230 ) {
231 let input_index = 2;
232 pre_sign_musig2_taproot_input(
233 self,
234 context,
235 input_index,
236 TapSighashType::All,
237 secret_nonce,
238 );
239
240 // TODO: Consider verifying the final signature against the n-of-n public key and the tx.
241 if self.musig2_signatures[&input_index].len() == context.n_of_n_public_keys.len() {
242 self.finalize_input_2(context, connector_5);
243 }
244 }
245
246 fn finalize_input_2(&mut self, context: &dyn BaseContext, connector_5: &Connector5) {
247 let input_index = 2;

Callers 1

pre_signMethod · 0.45

Calls 3

lenMethod · 0.80
finalize_input_2Method · 0.80

Tested by

no test coverage detected