Add a KeysInterface which provides keys from user
[rust-lightning] / src / chain / transaction.rs
index 227afa0de68e35bf8a104ea913f6ce7e2c6b0db0..e8ebae7092556286e4a6f22a8bfde7baa0ef9b30 100644 (file)
@@ -1,7 +1,10 @@
+//! Contains simple structs describing parts of transactions on the chain.
+
 use bitcoin::util::hash::Sha256dHash;
 use bitcoin::blockdata::transaction::OutPoint as BitcoinOutPoint;
 
 /// A reference to a transaction output.
+///
 /// Differs from bitcoin::blockdata::transaction::OutPoint as the index is a u16 instead of u32
 /// due to LN's restrictions on index values. Should reduce (possibly) unsafe conversions this way.
 #[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Debug, Hash)]
@@ -27,6 +30,7 @@ impl OutPoint {
                res
        }
 
+       /// Converts this OutPoint into the OutPoint field as used by rust-bitcoin
        pub fn into_bitcoin_outpoint(self) -> BitcoinOutPoint {
                BitcoinOutPoint {
                        txid: self.txid,