Struct everscale_network::adnl::NodeIdFull
source · pub struct NodeIdFull(_);Expand description
Full ADNL node id.
Implementations§
source§impl NodeIdFull
impl NodeIdFull
sourcepub const fn new(public_key: PublicKey) -> Self
pub const fn new(public_key: PublicKey) -> Self
Constructs full node id from a valid ED25519 public key
sourcepub const fn public_key(&self) -> &PublicKey
pub const fn public_key(&self) -> &PublicKey
Returns inner public key
sourcepub fn verify<T: TlWrite<Repr = Boxed>>(
&self,
data: T,
other_signature: &[u8]
) -> Result<(), NodeIdFullError>
pub fn verify<T: TlWrite<Repr = Boxed>>( &self, data: T, other_signature: &[u8] ) -> Result<(), NodeIdFullError>
Verifies the signature of an arbitrary serializable data
sourcepub fn compute_short_id(&self) -> NodeIdShort
pub fn compute_short_id(&self) -> NodeIdShort
Hashes inner public key
Trait Implementations§
source§impl Clone for NodeIdFull
impl Clone for NodeIdFull
source§fn clone(&self) -> NodeIdFull
fn clone(&self) -> NodeIdFull
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 NodeIdFull
impl Debug for NodeIdFull
source§impl From<PublicKey> for NodeIdFull
impl From<PublicKey> for NodeIdFull
source§impl PartialEq<NodeIdFull> for NodeIdFull
impl PartialEq<NodeIdFull> for NodeIdFull
source§fn eq(&self, other: &NodeIdFull) -> bool
fn eq(&self, other: &NodeIdFull) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<'a> TryFrom<PublicKey<'a>> for NodeIdFull
impl<'a> TryFrom<PublicKey<'a>> for NodeIdFull
impl Copy for NodeIdFull
impl Eq for NodeIdFull
impl StructuralEq for NodeIdFull
impl StructuralPartialEq for NodeIdFull
Auto Trait Implementations§
impl RefUnwindSafe for NodeIdFull
impl Send for NodeIdFull
impl Sync for NodeIdFull
impl Unpin for NodeIdFull
impl UnwindSafe for NodeIdFull
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