pub struct ExpandedKey { /* private fields */ }Expand description
A set of keys that were HKDF-expanded. Returned by NodeSigner::get_inbound_payment_key.
Implementations§
Source§impl ExpandedKey
impl ExpandedKey
Sourcepub fn new(key_material: [u8; 32]) -> ExpandedKey
pub fn new(key_material: [u8; 32]) -> ExpandedKey
Create a new ExpandedKey for generating an inbound payment hash and secret.
It is recommended to cache this value and not regenerate it for each new inbound payment.
Trait Implementations§
Source§impl Clone for ExpandedKey
impl Clone for ExpandedKey
Source§fn clone(&self) -> ExpandedKey
fn clone(&self) -> ExpandedKey
Returns a duplicate 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 ExpandedKey
impl Debug for ExpandedKey
Source§impl Hash for ExpandedKey
impl Hash for ExpandedKey
Source§impl PartialEq for ExpandedKey
impl PartialEq for ExpandedKey
impl Copy for ExpandedKey
impl Eq for ExpandedKey
impl StructuralPartialEq for ExpandedKey
Auto Trait Implementations§
impl Freeze for ExpandedKey
impl RefUnwindSafe for ExpandedKey
impl Send for ExpandedKey
impl Sync for ExpandedKey
impl Unpin for ExpandedKey
impl UnwindSafe for ExpandedKey
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