Struct StaticPaymentOutputDescriptor
pub struct StaticPaymentOutputDescriptor {
pub outpoint: OutPoint,
pub output: TxOut,
pub channel_keys_id: [u8; 32],
pub channel_value_satoshis: u64,
pub channel_transaction_parameters: Option<ChannelTransactionParameters>,
}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 ChannelSigner::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.
channel_transaction_parameters: Option<ChannelTransactionParameters>The necessary channel parameters that need to be provided to the re-derived signer through
ChannelSigner::provide_channel_parameters.
Added as optional, but always Some if the descriptor was produced in v0.0.117 or later.
Implementations§
§impl StaticPaymentOutputDescriptor
impl StaticPaymentOutputDescriptor
pub fn witness_script(&self) -> Option<Script>
pub fn witness_script(&self) -> Option<Script>
Returns the witness_script of the spendable output.
Note that this will only return Some for StaticPaymentOutputDescriptors that
originated from an anchor outputs channel, as they take the form of a P2WSH script.
pub fn max_witness_length(&self) -> usize
pub fn max_witness_length(&self) -> usize
The maximum length a well-formed witness spending one of these should have. Note: If you have the grind_signatures feature enabled, this will be at least 1 byte shorter.
Trait Implementations§
§impl Clone for StaticPaymentOutputDescriptor
impl Clone for StaticPaymentOutputDescriptor
§fn clone(&self) -> StaticPaymentOutputDescriptor
fn clone(&self) -> StaticPaymentOutputDescriptor
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for StaticPaymentOutputDescriptor
impl Debug for StaticPaymentOutputDescriptor
§impl Hash for StaticPaymentOutputDescriptor
impl Hash for StaticPaymentOutputDescriptor
§impl PartialEq for StaticPaymentOutputDescriptor
impl PartialEq for StaticPaymentOutputDescriptor
§impl Readable for StaticPaymentOutputDescriptor
impl Readable for StaticPaymentOutputDescriptor
§fn read<R>(reader: &mut R) -> Result<StaticPaymentOutputDescriptor, DecodeError>where
R: Read,
fn read<R>(reader: &mut R) -> Result<StaticPaymentOutputDescriptor, DecodeError>where
R: Read,
Self in from the given Read.§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§
§impl<T> AnyEq for T
impl<T> AnyEq for T
§impl<T> AnySync for T
impl<T> AnySync for T
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request