pub struct StaticPaymentOutputDescriptor {
pub outpoint: OutPoint,
pub output: TxOut,
pub channel_keys_id: [u8; 32],
pub channel_value_satoshis: u64,
}Expand description
Information about a spendable output to our “payment key”.
See SpendableOutputDescriptor::StaticPaymentOutput for more details on how to spend this.
Fields§
§outpoint: OutPointThe outpoint which is spendable.
output: TxOutThe output which is referenced by the given outpoint.
channel_keys_id: [u8; 32]Arbitrary identification information returned by a call to BaseSign::channel_keys_id.
This may be useful in re-deriving keys used in the channel to spend the output.
channel_value_satoshis: u64The value of the channel which this transactions spends.
Implementations§
Source§impl StaticPaymentOutputDescriptor
impl StaticPaymentOutputDescriptor
Sourcepub const MAX_WITNESS_LENGTH: usize = 108usize
pub const MAX_WITNESS_LENGTH: usize = 108usize
The maximum length a well-formed witness spending one of these should have.
Trait Implementations§
Source§impl Clone for StaticPaymentOutputDescriptor
impl Clone for StaticPaymentOutputDescriptor
Source§fn clone(&self) -> StaticPaymentOutputDescriptor
fn clone(&self) -> StaticPaymentOutputDescriptor
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl PartialEq for StaticPaymentOutputDescriptor
impl PartialEq for StaticPaymentOutputDescriptor
Source§fn eq(&self, other: &StaticPaymentOutputDescriptor) -> bool
fn eq(&self, other: &StaticPaymentOutputDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Writeable for StaticPaymentOutputDescriptor
impl Writeable for StaticPaymentOutputDescriptor
impl Eq for StaticPaymentOutputDescriptor
impl StructuralPartialEq for StaticPaymentOutputDescriptor
Auto Trait Implementations§
impl Freeze for StaticPaymentOutputDescriptor
impl RefUnwindSafe for StaticPaymentOutputDescriptor
impl Send for StaticPaymentOutputDescriptor
impl Sync for StaticPaymentOutputDescriptor
impl Unpin for StaticPaymentOutputDescriptor
impl UnwindSafe for StaticPaymentOutputDescriptor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more