Struct PrivKey
pub struct PrivKey(/* private fields */);Expand description
A private-public key pair
Implementations§
Trait Implementations§
§impl<'de> Deserialize<'de> for PrivKey
impl<'de> Deserialize<'de> for PrivKey
§fn deserialize<D>(
deserializer: D,
) -> Result<PrivKey, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<PrivKey, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl IntoSignatureEnum<PrivKey> for Signature
impl IntoSignatureEnum<PrivKey> for Signature
§fn into_signature_enum(self, pub_key: PubKey) -> Signature
fn into_signature_enum(self, pub_key: PubKey) -> Signature
Transform this specific signature into a generic Signature.
§impl Serialize for PrivKey
impl Serialize for PrivKey
§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 SigningKey for PrivKey
impl SigningKey for PrivKey
§type VerifyingKey = PubKey
type VerifyingKey = PubKey
Type of key used to verify produced signatures
§type Error = SignatureError
type Error = SignatureError
Type of error that can occur when signing
§fn sign_serialized(
&self,
bytes: impl AsRef<[u8]>,
) -> Result<<PrivKey as SigningKey>::Signature, <PrivKey as SigningKey>::Error>
fn sign_serialized( &self, bytes: impl AsRef<[u8]>, ) -> Result<<PrivKey as SigningKey>::Signature, <PrivKey as SigningKey>::Error>
Sign serialized bytes using this key
§fn pub_key(&self) -> <PrivKey as SigningKey>::VerifyingKey
fn pub_key(&self) -> <PrivKey as SigningKey>::VerifyingKey
Get the [VerifyingKey] associated with this SigningKey
impl Eq for PrivKey
impl StructuralPartialEq for PrivKey
Auto Trait Implementations§
impl Freeze for PrivKey
impl RefUnwindSafe for PrivKey
impl Send for PrivKey
impl Sync for PrivKey
impl Unpin for PrivKey
impl UnwindSafe for PrivKey
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,
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