Struct lightning_signer::channel::ChannelStub
source · pub struct ChannelStub {
pub node: Weak<Node>,
pub keys: InMemorySigner,
pub id0: ChannelId,
/* private fields */
}
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
keys: InMemorySigner
The signer for this channel
id0: ChannelId
The initial channel ID, used to find the channel in the node
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 more