Struct lightning_signer::channel::ChannelStub
source · pub struct ChannelStub {
pub node: Weak<Node>,
pub keys: InMemorySigner,
pub id0: ChannelId,
pub blockheight: u32,
/* private fields */
}
Expand description
A channel takes this form after Node::new_channel, and before Node::setup_channel
Fields§
§node: Weak<Node>
A backpointer to the node
keys: InMemorySigner
The signer for this channel
id0: ChannelId
The initial channel ID, used to find the channel in the node
blockheight: u32
Blockheight when created
Trait Implementations§
source§impl ChannelBase for ChannelStub
impl ChannelBase for ChannelStub
source§fn get_channel_basepoints(&self) -> ChannelPublicKeys
fn get_channel_basepoints(&self) -> ChannelPublicKeys
Get the channel basepoints and public keys
source§fn get_per_commitment_point(
&self,
commitment_number: u64
) -> Result<PublicKey, Status>
fn get_per_commitment_point( &self, commitment_number: u64 ) -> Result<PublicKey, Status>
Get the per-commitment point for a holder commitment transaction
source§fn get_per_commitment_secret(
&self,
_commitment_number: u64
) -> Result<SecretKey, Status>
fn get_per_commitment_secret( &self, _commitment_number: u64 ) -> Result<SecretKey, Status>
Get the per-commitment secret for a holder commitment transaction
source§impl Clone for ChannelStub
impl Clone for ChannelStub
source§fn clone(&self) -> ChannelStub
fn clone(&self) -> ChannelStub
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ChannelStub
impl Send for ChannelStub
impl Sync for ChannelStub
impl Unpin for ChannelStub
impl !UnwindSafe for ChannelStub
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