pub struct SignedPublicKeyMessage { /* private fields */ }Expand description
SignedAsymmetricPublicKeyMessage is a message that once signed, makes a claim towards owning a
public encryption key.
Implementations§
Source§impl SignedPublicKeyMessage
impl SignedPublicKeyMessage
Sourcepub fn from_public_key(
public_key: &AsymmetricPublicCryptoKey,
) -> Result<Self, CryptoError>
pub fn from_public_key( public_key: &AsymmetricPublicCryptoKey, ) -> Result<Self, CryptoError>
Creates a new SignedPublicKeyMessage from an AsymmetricPublicCryptoKey. This message
can then be signed using a SigningKey to create a SignedPublicKey.
Sourcepub fn sign(
&self,
signing_key: &SigningKey,
) -> Result<SignedPublicKey, CryptoError>
pub fn sign( &self, signing_key: &SigningKey, ) -> Result<SignedPublicKey, CryptoError>
Signs the SignedPublicKeyMessage using the provided SigningKey, and returns a
SignedPublicKey.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SignedPublicKeyMessage
impl<'de> Deserialize<'de> for SignedPublicKeyMessage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SignedPublicKeyMessage
impl RefUnwindSafe for SignedPublicKeyMessage
impl Send for SignedPublicKeyMessage
impl Sync for SignedPublicKeyMessage
impl Unpin for SignedPublicKeyMessage
impl UnwindSafe for SignedPublicKeyMessage
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more