(&self)
| 42 | } |
| 43 | |
| 44 | fn generate_taproot_leaf_0_script(&self) -> ScriptBuf { |
| 45 | let destination_network_txid_public_key = |
| 46 | &self.commitment_public_keys[&CommitmentMessageId::PegOutTxIdDestinationNetwork]; |
| 47 | let source_network_txid_public_key = |
| 48 | &self.commitment_public_keys[&CommitmentMessageId::PegOutTxIdSourceNetwork]; |
| 49 | script! { |
| 50 | { winternitz_message_checksig_verify(destination_network_txid_public_key, DESTINATION_NETWORK_TXID_LENGTH * 2) } |
| 51 | { winternitz_message_checksig_verify(source_network_txid_public_key, SOURCE_NETWORK_TXID_LENGTH * 2) } |
| 52 | { self.operator_taproot_public_key } |
| 53 | OP_CHECKSIG |
| 54 | }.compile() |
| 55 | } |
| 56 | |
| 57 | fn generate_taproot_leaf_0_tx_in(&self, input: &Input) -> TxIn { |
| 58 | generate_default_tx_in(input) |
no outgoing calls
no test coverage detected