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

Method generate_taproot_leaf_0_script

bridge/src/connectors/connector_6.rs:44–55  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

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)

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected