Struct lightning::ln::channel_keys::PaymentBasepoint
source · pub struct PaymentBasepoint(pub PublicKey);
Expand description
Master key used in conjunction with per_commitment_point to generate a localpubkey for the latest state of a channel.
Also used to generate a commitment number in a commitment transaction or as a Payment Key for a remote node (not us) in an anchor output if option_static_remotekey
is enabled.
Shared by both nodes in a channel establishment message flow.
Tuple Fields§
§0: PublicKey
Implementations§
source§impl PaymentBasepoint
impl PaymentBasepoint
sourcepub fn to_public_key(&self) -> PublicKey
pub fn to_public_key(&self) -> PublicKey
Get inner Public Key
Trait Implementations§
source§impl Clone for PaymentBasepoint
impl Clone for PaymentBasepoint
source§fn clone(&self) -> PaymentBasepoint
fn clone(&self) -> PaymentBasepoint
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 moresource§impl Debug for PaymentBasepoint
impl Debug for PaymentBasepoint
source§impl From<PublicKey> for PaymentBasepoint
impl From<PublicKey> for PaymentBasepoint
source§impl Hash for PaymentBasepoint
impl Hash for PaymentBasepoint
source§impl PartialEq for PaymentBasepoint
impl PartialEq for PaymentBasepoint
source§fn eq(&self, other: &PaymentBasepoint) -> bool
fn eq(&self, other: &PaymentBasepoint) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Readable for PaymentBasepoint
impl Readable for PaymentBasepoint
source§impl Writeable for PaymentBasepoint
impl Writeable for PaymentBasepoint
impl Copy for PaymentBasepoint
impl Eq for PaymentBasepoint
impl StructuralEq for PaymentBasepoint
impl StructuralPartialEq for PaymentBasepoint
Auto Trait Implementations§
impl RefUnwindSafe for PaymentBasepoint
impl Send for PaymentBasepoint
impl Sync for PaymentBasepoint
impl Unpin for PaymentBasepoint
impl UnwindSafe for PaymentBasepoint
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