pub struct OpenMlsSignaturePublicKey { /* private fields */ }
Expand description
A public signature key.
Implementations§
Source§impl OpenMlsSignaturePublicKey
impl OpenMlsSignaturePublicKey
Sourcepub fn new(
value: VLBytes,
signature_scheme: SignatureScheme,
) -> Result<Self, CryptoError>
pub fn new( value: VLBytes, signature_scheme: SignatureScheme, ) -> Result<Self, CryptoError>
Create a new signature public key from raw key bytes.
Sourcepub fn from_signature_key(
key: SignaturePublicKey,
signature_scheme: SignatureScheme,
) -> Self
pub fn from_signature_key( key: SignaturePublicKey, signature_scheme: SignatureScheme, ) -> Self
Create a new signature public key from raw key.
Sourcepub fn signature_scheme(&self) -> SignatureScheme
pub fn signature_scheme(&self) -> SignatureScheme
Get the signature scheme of the public key.
Trait Implementations§
Source§impl Clone for OpenMlsSignaturePublicKey
impl Clone for OpenMlsSignaturePublicKey
Source§fn clone(&self) -> OpenMlsSignaturePublicKey
fn clone(&self) -> OpenMlsSignaturePublicKey
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 OpenMlsSignaturePublicKey
impl Debug for OpenMlsSignaturePublicKey
Source§impl<'de> Deserialize<'de> for OpenMlsSignaturePublicKey
impl<'de> Deserialize<'de> for OpenMlsSignaturePublicKey
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
Source§impl From<OpenMlsSignaturePublicKey> for SignaturePublicKey
impl From<OpenMlsSignaturePublicKey> for SignaturePublicKey
Source§fn from(signature_public_key_enriched: OpenMlsSignaturePublicKey) -> Self
fn from(signature_public_key_enriched: OpenMlsSignaturePublicKey) -> Self
Converts to this type from the input type.
Source§impl Hash for OpenMlsSignaturePublicKey
impl Hash for OpenMlsSignaturePublicKey
impl Eq for OpenMlsSignaturePublicKey
impl StructuralPartialEq for OpenMlsSignaturePublicKey
Auto Trait Implementations§
impl Freeze for OpenMlsSignaturePublicKey
impl RefUnwindSafe for OpenMlsSignaturePublicKey
impl Send for OpenMlsSignaturePublicKey
impl Sync for OpenMlsSignaturePublicKey
impl Unpin for OpenMlsSignaturePublicKey
impl UnwindSafe for OpenMlsSignaturePublicKey
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<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