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

Method generate_taproot_leaf_script

bridge/src/connectors/connector_d.rs:37–42  ·  view source on GitHub ↗
(&self, leaf_index: u32)

Source from the content-addressed store, hash-verified

35
36impl TaprootConnector for ConnectorD {
37 fn generate_taproot_leaf_script(&self, leaf_index: u32) -> ScriptBuf {
38 match leaf_index {
39 0 => self.generate_taproot_leaf_0_script(),
40 _ => panic!("Invalid leaf index."),
41 }
42 }
43
44 fn generate_taproot_leaf_tx_in(&self, leaf_index: u32, input: &Input) -> TxIn {
45 match leaf_index {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected