pub struct Key { /* private fields */ }
Expand description
ADNL key with precomputed node IDs
Implementations§
Source§impl Key
impl Key
Sourcepub fn from_bytes(secret_key: [u8; 32]) -> Self
pub fn from_bytes(secret_key: [u8; 32]) -> Self
Constructs new key from the secret key bytes
Sourcepub fn id(&self) -> &NodeIdShort
pub fn id(&self) -> &NodeIdShort
Returns short key id
Sourcepub fn full_id(&self) -> &NodeIdFull
pub fn full_id(&self) -> &NodeIdFull
Returns full key id
Sourcepub fn secret_key(&self) -> &ExpandedSecretKey
pub fn secret_key(&self) -> &ExpandedSecretKey
Returns inner secret key (as expanded)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Key
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnwindSafe for Key
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