(
&mut self,
context: &OperatorContext,
connector_2: &Connector2,
start_time_block_number: u32,
start_time_commitment_secret: &WinternitzSecret,
)
| 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); |
nothing calls this directly
no test coverage detected