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

Method generate_taproot_leaf_script

bridge/src/connectors/connector_2.rs:83–89  ·  view source on GitHub ↗
(&self, leaf_index: u32)

Source from the content-addressed store, hash-verified

81
82impl TaprootConnector for Connector2 {
83 fn generate_taproot_leaf_script(&self, leaf_index: u32) -> ScriptBuf {
84 match leaf_index {
85 0 => self.generate_taproot_leaf_0_script(),
86 1 => self.generate_taproot_leaf_1_script(),
87 _ => panic!("Invalid leaf index."),
88 }
89 }
90
91 fn generate_taproot_leaf_tx_in(&self, leaf_index: u32, input: &Input) -> TxIn {
92 match leaf_index {

Callers

nothing calls this directly

Tested by

no test coverage detected