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

Method sign_input_0

bridge/src/transactions/kick_off_timeout.rs:120–139  ·  view source on GitHub ↗
(
        &mut self,
        context: &VerifierContext,
        connector_1: &Connector1,
        secret_nonce: &SecNonce,
    )

Source from the content-addressed store, hash-verified

118 }
119
120 fn sign_input_0(
121 &mut self,
122 context: &VerifierContext,
123 connector_1: &Connector1,
124 secret_nonce: &SecNonce,
125 ) {
126 let input_index = 0;
127 pre_sign_musig2_taproot_input(
128 self,
129 context,
130 input_index,
131 TapSighashType::Single,
132 secret_nonce,
133 );
134
135 // TODO: Consider verifying the final signature against the n-of-n public key and the tx.
136 if self.musig2_signatures[&input_index].len() == context.n_of_n_public_keys.len() {
137 self.finalize_input_0(context, connector_1);
138 }
139 }
140
141 fn finalize_input_0(&mut self, context: &dyn BaseContext, connector_1: &Connector1) {
142 let input_index = 0;

Callers 1

pre_signMethod · 0.45

Calls 3

lenMethod · 0.80
finalize_input_0Method · 0.45

Tested by

no test coverage detected