Struct everscale_network::adnl::Key
source · pub struct Key { /* private fields */ }Expand description
ADNL key with precomputed node IDs
Implementations
sourceimpl Key
impl Key
pub fn from_bytes(secret_key: [u8; 32]) -> Self
pub fn id(&self) -> &NodeIdShort
pub fn full_id(&self) -> &NodeIdFull
pub fn secret_key(&self) -> &ExpandedSecretKey
pub fn sign<T: TlWrite<Repr = Boxed>>(&self, data: T) -> [u8; 64]
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