Struct lightning_signer::channel::ChannelStub [−][src]
pub struct ChannelStub {
pub node: Weak<Node>,
pub nonce: Vec<u8>,
pub keys: InMemorySigner,
pub id0: ChannelId,
// some fields omitted
}
Expand description
A channel takes this form after Node::new_channel, and before Node::ready_channel
Fields
node: Weak<Node>
A backpointer to the node
nonce: Vec<u8>
The channel nonce, used to derive keys
keys: InMemorySigner
The signer for this channel
id0: ChannelId
The initial channel ID, used to find the channel in the node
Trait Implementations
Get the channel basepoints and public keys
Get the per-commitment point for a holder commitment transaction
Get the per-commitment secret for a holder commitment transaction
Check a future secret to support option_data_loss_protect
Get the channel nonce, used to derive the channel keys
fn validator(&self) -> Box<dyn Validator>ⓘimpl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
fn validator(&self) -> Box<dyn Validator>ⓘimpl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
Returns the validator for this channel
Auto Trait Implementations
impl !RefUnwindSafe for ChannelStub
impl Send for ChannelStub
impl Sync for ChannelStub
impl Unpin for ChannelStub
impl !UnwindSafe for ChannelStub
Blanket Implementations
Mutably borrows from an owned value. Read more