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

Method sign_input_1

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

Source from the content-addressed store, hash-verified

176 }
177
178 fn sign_input_1(
179 &mut self,
180 context: &VerifierContext,
181 connector_1: &Connector1,
182 secret_nonce: &SecNonce,
183 ) {
184 let input_index = 1;
185 pre_sign_musig2_taproot_input(
186 self,
187 context,
188 input_index,
189 TapSighashType::None,
190 secret_nonce,
191 );
192
193 // TODO: Consider verifying the final signature against the n-of-n public key and the tx.
194 if self.musig2_signatures[&input_index].len() == context.n_of_n_public_keys.len() {
195 self.finalize_input_1(context, connector_1);
196 }
197 }
198
199 fn finalize_input_1(&mut self, context: &dyn BaseContext, connector_1: &Connector1) {
200 let input_index = 1;

Callers 1

pre_signMethod · 0.45

Calls 3

lenMethod · 0.80
finalize_input_1Method · 0.80

Tested by

no test coverage detected