Struct chain_network::data::p2p::AuthenticatedNodeId
source · pub struct AuthenticatedNodeId {
id: NodeId,
signature: Signature<[u8], Ed25519>,
}
Expand description
A node ID accompanied with a signature.
The signature is not assumed to be valid by construction.
Use the verify
method to verify the signature against the original
nonce.
Fields§
§id: NodeId
§signature: Signature<[u8], Ed25519>
Implementations§
Trait Implementations§
source§impl From<AuthenticatedNodeId> for NodeId
impl From<AuthenticatedNodeId> for NodeId
source§fn from(auth: AuthenticatedNodeId) -> Self
fn from(auth: AuthenticatedNodeId) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for AuthenticatedNodeId
impl Send for AuthenticatedNodeId
impl Sync for AuthenticatedNodeId
impl Unpin for AuthenticatedNodeId
impl UnwindSafe for AuthenticatedNodeId
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request