Struct everscale_network::adnl::Key
source · pub struct Key { /* private fields */ }Expand description
ADNL key with precomputed node IDs
Implementations
sourceimpl 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 RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnwindSafe for Key
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more