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

Method sign_input_0

bridge/src/transactions/take_1.rs:184–203  ·  view source on GitHub ↗
(
        &mut self,
        context: &VerifierContext,
        connector_0: &Connector0,
        secret_nonce: &SecNonce,
    )

Source from the content-addressed store, hash-verified

182 }
183
184 fn sign_input_0(
185 &mut self,
186 context: &VerifierContext,
187 connector_0: &Connector0,
188 secret_nonce: &SecNonce,
189 ) {
190 let input_index = 0;
191 pre_sign_musig2_taproot_input(
192 self,
193 context,
194 input_index,
195 TapSighashType::All,
196 secret_nonce,
197 );
198
199 // TODO: Consider verifying the final signature against the n-of-n public key and the tx.
200 if self.musig2_signatures[&input_index].len() == context.n_of_n_public_keys.len() {
201 self.finalize_input_0(context, connector_0);
202 }
203 }
204
205 fn finalize_input_0(&mut self, context: &dyn BaseContext, connector_0: &Connector0) {
206 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