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

Method sign

bridge/src/transactions/start_time.rs:166–183  ·  view source on GitHub ↗
(
        &mut self,
        context: &OperatorContext,
        connector_2: &Connector2,
        start_time_block_number: u32,
        start_time_commitment_secret: &WinternitzSecret,
    )

Source from the content-addressed store, hash-verified

164 }
165
166 pub fn sign(
167 &mut self,
168 context: &OperatorContext,
169 connector_2: &Connector2,
170 start_time_block_number: u32,
171 start_time_commitment_secret: &WinternitzSecret,
172 ) {
173 self.tx_mut().lock_time = absolute::LockTime::from_height(start_time_block_number)
174 .expect("Failed to set lock time from block.");
175 self.sign_input_0(
176 context,
177 connector_2,
178 &WinternitzSigningInputs {
179 message: &start_time_block_number.to_le_bytes(),
180 signing_key: start_time_commitment_secret,
181 },
182 );
183 }
184
185 pub fn merge(&mut self, burn: &StartTimeTransaction) {
186 merge_transactions(&mut self.tx, &burn.tx);

Callers

nothing calls this directly

Calls 2

tx_mutMethod · 0.45
sign_input_0Method · 0.45

Tested by

no test coverage detected