Struct everscale_network::adnl::Key
source · 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)