Struct lightning::ln::PaymentSecret
source · [−]Expand description
payment_secret type, use to authenticate sender to the receiver and tie MPP HTLCs together (C-not exported) as we just use [u8; 32] directly
Tuple Fields
0: [u8; 32]
Trait Implementations
sourceimpl Base32Len for PaymentSecret
impl Base32Len for PaymentSecret
sourcefn base32_len(&self) -> usize
fn base32_len(&self) -> usize
Calculate the base32 serialized length
sourceimpl Clone for PaymentSecret
impl Clone for PaymentSecret
sourcefn clone(&self) -> PaymentSecret
fn clone(&self) -> PaymentSecret
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PaymentSecret
impl Debug for PaymentSecret
sourceimpl 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).
sourcefn from_base32(field_data: &[u5]) -> Result<PaymentSecret, Error>
fn from_base32(field_data: &[u5]) -> Result<PaymentSecret, Error>
Convert a base32 slice to Self
.
sourceimpl Hash for PaymentSecret
impl Hash for PaymentSecret
sourceimpl PartialEq<PaymentSecret> for PaymentSecret
impl PartialEq<PaymentSecret> for PaymentSecret
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &PaymentSecret) -> bool
fn ne(&self, other: &PaymentSecret) -> bool
This method tests for !=
.
sourceimpl Readable for PaymentSecret
impl Readable for PaymentSecret
sourceimpl ToBase32 for PaymentSecret
impl ToBase32 for PaymentSecret
sourceimpl Writeable for PaymentSecret
impl Writeable for PaymentSecret
sourcefn encode(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn encode(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Writes self out to a Vec
sourcefn serialized_length(&self) -> usize
fn serialized_length(&self) -> usize
Gets the length of this object after it has been serialized. This can be overridden to optimize cases where we prepend an object with its length. Read more
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> MaybeReadable for T where
T: Readable,
impl<T> MaybeReadable for T where
T: Readable,
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more