Struct lightning::chain::transaction::OutPoint [−][src]
Expand description
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.
Fields
txid: Txid
The referenced transaction’s txid.
index: u16
The index of the referenced output in its transaction’s vout.
Implementations
Convert an OutPoint
to a lightning channel id.
Converts this OutPoint into the OutPoint field as used by rust-bitcoin (C-not exported) as the same type is used universally in the C bindings for all outpoints
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Gets the length of this object after it has been serialized. This can be overridden to optimize cases where we prepend an object with its length. Read more
Writes self out to a Vec
Auto Trait Implementations
impl RefUnwindSafe for OutPoint
impl UnwindSafe for OutPoint
Blanket Implementations
Mutably borrows from an owned value. Read more