Struct lightning_types::payment::PaymentSecret
source · pub struct PaymentSecret(pub [u8; 32]);
Expand description
The payment secret is used to authenticate the sender of an HTLC to the recipient and tie multi-part HTLCs together into a single payment.
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 Borrow<[u8]> for PaymentSecret
impl Borrow<[u8]> for PaymentSecret
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 Display for PaymentSecret
impl Display for PaymentSecret
source§impl FromBase32 for PaymentSecret
impl FromBase32 for PaymentSecret
source§impl Hash for PaymentSecret
impl Hash for PaymentSecret
source§impl LowerHex for PaymentSecret
impl LowerHex for PaymentSecret
source§impl Ord for PaymentSecret
impl Ord for PaymentSecret
source§fn cmp(&self, other: &PaymentSecret) -> Ordering
fn cmp(&self, other: &PaymentSecret) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for PaymentSecret
impl PartialEq for PaymentSecret
source§impl PartialOrd for PaymentSecret
impl PartialOrd for PaymentSecret
source§impl ToBase32 for PaymentSecret
impl ToBase32 for PaymentSecret
source§fn write_base32<W: WriteBase32>(
&self,
writer: &mut W,
) -> Result<(), <W as WriteBase32>::Err>
fn write_base32<W: WriteBase32>( &self, writer: &mut W, ) -> Result<(), <W as WriteBase32>::Err>
Encode as base32 and write it to the supplied writer
Implementations shouldn’t allocate.
source§impl UpperHex for PaymentSecret
impl UpperHex for PaymentSecret
impl Copy for PaymentSecret
impl Eq for PaymentSecret
impl StructuralPartialEq for PaymentSecret
Auto Trait Implementations§
impl Freeze for PaymentSecret
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)