Struct lightning::chain::keysinterface::KeyMaterial
source · pub struct KeyMaterial(pub [u8; 32]);
Expand description
Used as initial key material, to be expanded into multiple secret keys (but not to be used directly). This is used within LDK to encrypt/decrypt inbound payment data.
This is not exported to bindings users as we just use [u8; 32]
directly
Tuple Fields§
§0: [u8; 32]
Trait Implementations§
source§impl Clone for KeyMaterial
impl Clone for KeyMaterial
source§fn clone(&self) -> KeyMaterial
fn clone(&self) -> KeyMaterial
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 KeyMaterial
impl Debug for KeyMaterial
source§impl Hash for KeyMaterial
impl Hash for KeyMaterial
source§impl PartialEq<KeyMaterial> for KeyMaterial
impl PartialEq<KeyMaterial> for KeyMaterial
source§fn eq(&self, other: &KeyMaterial) -> bool
fn eq(&self, other: &KeyMaterial) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for KeyMaterial
impl Eq for KeyMaterial
impl StructuralEq for KeyMaterial
impl StructuralPartialEq for KeyMaterial
Auto Trait Implementations§
impl RefUnwindSafe for KeyMaterial
impl Send for KeyMaterial
impl Sync for KeyMaterial
impl Unpin for KeyMaterial
impl UnwindSafe for KeyMaterial
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