Struct PubKey
pub struct PubKey(/* private fields */);Expand description
A public key
Implementations§
Trait Implementations§
§impl<'de> Deserialize<'de> for PubKey
impl<'de> Deserialize<'de> for PubKey
§fn deserialize<D>(
deserializer: D,
) -> Result<PubKey, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<PubKey, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Ord for PubKey
impl Ord for PubKey
§impl PartialOrd for PubKey
impl PartialOrd for PubKey
§impl Serialize for PubKey
impl Serialize for PubKey
§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
§impl VerifyingKey for PubKey
impl VerifyingKey for PubKey
§type VerificationError = SignatureError
type VerificationError = SignatureError
The verification error type.
§fn verify_serialized(
&self,
data: impl AsRef<[u8]>,
signature: &<PubKey as VerifyingKey>::Signature,
) -> Result<(), <PubKey as VerifyingKey>::VerificationError>
fn verify_serialized( &self, data: impl AsRef<[u8]>, signature: &<PubKey as VerifyingKey>::Signature, ) -> Result<(), <PubKey as VerifyingKey>::VerificationError>
Verify a signature against serialized bytes
§fn verify_signature(
&self,
data: &impl Serialize,
signature: &Self::Signature,
) -> Result<(), Self::VerificationError>
fn verify_signature( &self, data: &impl Serialize, signature: &Self::Signature, ) -> Result<(), Self::VerificationError>
Verify a signature
impl Copy for PubKey
impl Eq for PubKey
impl StructuralPartialEq for PubKey
Auto Trait Implementations§
impl Freeze for PubKey
impl RefUnwindSafe for PubKey
impl Send for PubKey
impl Sync for PubKey
impl Unpin for PubKey
impl UnwindSafe for PubKey
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. 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