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

Function generate_input

bridge/src/graphs/peg_in.rs:666–674  ·  view source on GitHub ↗
(tx: &Transaction, vout: usize)

Source from the content-addressed store, hash-verified

664}
665
666fn generate_input(tx: &Transaction, vout: usize) -> Input {
667 Input {
668 outpoint: OutPoint {
669 txid: tx.compute_txid(),
670 vout: vout.to_u32().unwrap(),
671 },
672 amount: tx.output[vout].value,
673 }
674}

Callers 3

newMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected