+//! Contains simple structs describing parts of transactions on the chain.
+
use bitcoin::util::hash::Sha256dHash;
use bitcoin::blockdata::transaction::OutPoint as BitcoinOutPoint;
}
impl OutPoint {
- /// Creates a new `OutPoint` from the txid an the index.
+ /// Creates a new `OutPoint` from the txid and the index.
pub fn new(txid: Sha256dHash, index: u16) -> OutPoint {
OutPoint { txid, index }
}
res
}
+ /// Converts this OutPoint into the OutPoint field as used by rust-bitcoin
pub fn into_bitcoin_outpoint(self) -> BitcoinOutPoint {
BitcoinOutPoint {
txid: self.txid,