Struct lightning::ln::PaymentSecret
source · pub struct PaymentSecret(pub [u8; 32]);
Expand description
payment_secret type, use to authenticate sender to the receiver and tie MPP HTLCs together
This is not exported to bindings users as we just use [u8; 32] directly
Tuple Fields§
§0: [u8; 32]
Trait Implementations§
source§impl Base32Len for PaymentSecret
impl Base32Len for PaymentSecret
source§fn base32_len(&self) -> usize
fn base32_len(&self) -> usize
Calculate the base32 serialized length
source§impl Clone for PaymentSecret
impl Clone for PaymentSecret
source§fn clone(&self) -> PaymentSecret
fn clone(&self) -> PaymentSecret
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 PaymentSecret
impl Debug for PaymentSecret
source§impl FromBase32 for PaymentSecret
impl FromBase32 for PaymentSecret
§type Err = Error
type Err = Error
The associated error which can be returned from parsing (e.g. because of bad padding).
source§fn from_base32(field_data: &[u5]) -> Result<PaymentSecret, Error>
fn from_base32(field_data: &[u5]) -> Result<PaymentSecret, Error>
Convert a base32 slice to
Self
.source§impl Hash for PaymentSecret
impl Hash for PaymentSecret
source§impl PartialEq<PaymentSecret> for PaymentSecret
impl PartialEq<PaymentSecret> for PaymentSecret
source§fn eq(&self, other: &PaymentSecret) -> bool
fn eq(&self, other: &PaymentSecret) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Readable for PaymentSecret
impl Readable for PaymentSecret
source§impl ToBase32 for PaymentSecret
impl ToBase32 for PaymentSecret
source§impl Writeable for PaymentSecret
impl Writeable for PaymentSecret
impl Copy for PaymentSecret
impl Eq for PaymentSecret
impl StructuralEq for PaymentSecret
impl StructuralPartialEq for PaymentSecret
Auto Trait Implementations§
impl RefUnwindSafe for PaymentSecret
impl Send for PaymentSecret
impl Sync for PaymentSecret
impl Unpin for PaymentSecret
impl UnwindSafe for PaymentSecret
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