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

Method generate_taproot_leaf_script

bridge/src/connectors/connector_5.rs:45–51  ·  view source on GitHub ↗
(&self, leaf_index: u32)

Source from the content-addressed store, hash-verified

43
44impl TaprootConnector for Connector5 {
45 fn generate_taproot_leaf_script(&self, leaf_index: u32) -> ScriptBuf {
46 match leaf_index {
47 0 => self.generate_taproot_leaf_0_script(),
48 1 => self.generate_taproot_leaf_1_script(),
49 _ => panic!("Invalid leaf index."),
50 }
51 }
52
53 fn generate_taproot_leaf_tx_in(&self, leaf_index: u32, input: &Input) -> TxIn {
54 match leaf_index {

Callers

nothing calls this directly

Tested by

no test coverage detected