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.
(C-not exported) 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 ==
.