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

Method pre_sign

bridge/src/transactions/assert_transactions/assert_initial.rs:208–216  ·  view source on GitHub ↗
(
        &mut self,
        context: &VerifierContext,
        connector_b: &ConnectorB,
        secret_nonces: &HashMap<usize, SecNonce>,
    )

Source from the content-addressed store, hash-verified

206 }
207
208 pub fn pre_sign(
209 &mut self,
210 context: &VerifierContext,
211 connector_b: &ConnectorB,
212 secret_nonces: &HashMap<usize, SecNonce>,
213 ) {
214 let input_index = 0;
215 self.sign_input_0(context, connector_b, &secret_nonces[&input_index]);
216 }
217
218 pub fn merge(&mut self, assert: &AssertInitialTransaction) {
219 merge_transactions(&mut self.tx, &assert.tx);

Callers

nothing calls this directly

Calls 1

sign_input_0Method · 0.45

Tested by

no test coverage detected