pub struct VerifyingKey<P: MayoParameter> { /* private fields */ }Expand description
A MAYO verifying key (compact public key).
Trait Implementations§
Source§impl<P: MayoParameter> AsRef<[u8]> for VerifyingKey<P>
impl<P: MayoParameter> AsRef<[u8]> for VerifyingKey<P>
Source§impl<P: MayoParameter> AsRef<VerifyingKey<P>> for KeyPair<P>
impl<P: MayoParameter> AsRef<VerifyingKey<P>> for KeyPair<P>
Source§fn as_ref(&self) -> &VerifyingKey<P>
fn as_ref(&self) -> &VerifyingKey<P>
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl<P: Clone + MayoParameter> Clone for VerifyingKey<P>
impl<P: Clone + MayoParameter> Clone for VerifyingKey<P>
Source§fn clone(&self) -> VerifyingKey<P>
fn clone(&self) -> VerifyingKey<P>
Returns a duplicate 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<P: MayoParameter> Debug for VerifyingKey<P>
impl<P: MayoParameter> Debug for VerifyingKey<P>
Source§impl<'de, P: MayoParameter> Deserialize<'de> for VerifyingKey<P>
Available on crate feature serde only.
impl<'de, P: MayoParameter> Deserialize<'de> for VerifyingKey<P>
Available on crate feature
serde only.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<P> EncodePublicKey for VerifyingKey<P>
impl<P> EncodePublicKey for VerifyingKey<P>
Source§impl<P: MayoParameter> From<&SigningKey<P>> for VerifyingKey<P>
impl<P: MayoParameter> From<&SigningKey<P>> for VerifyingKey<P>
Source§fn from(sk: &SigningKey<P>) -> Self
fn from(sk: &SigningKey<P>) -> Self
Converts to this type from the input type.
Source§impl<P: MayoParameter> PartialEq for VerifyingKey<P>
impl<P: MayoParameter> PartialEq for VerifyingKey<P>
Source§impl<P: MayoParameter> Serialize for VerifyingKey<P>
Available on crate feature serde only.
impl<P: MayoParameter> Serialize for VerifyingKey<P>
Available on crate feature
serde only.Source§impl<P> SignatureAlgorithmIdentifier for VerifyingKey<P>
impl<P> SignatureAlgorithmIdentifier for VerifyingKey<P>
Source§const SIGNATURE_ALGORITHM_IDENTIFIER: AlgorithmIdentifier<Self::Params> = Signature<P>::ALGORITHM_IDENTIFIER
const SIGNATURE_ALGORITHM_IDENTIFIER: AlgorithmIdentifier<Self::Params> = Signature<P>::ALGORITHM_IDENTIFIER
AlgorithmIdentifier for the corresponding signature system.Source§impl<P: MayoParameter> TryFrom<&[u8]> for VerifyingKey<P>
impl<P: MayoParameter> TryFrom<&[u8]> for VerifyingKey<P>
Source§impl<P: MayoParameter> TryFrom<&Vec<u8>> for VerifyingKey<P>
impl<P: MayoParameter> TryFrom<&Vec<u8>> for VerifyingKey<P>
Source§impl<P: MayoParameter> TryFrom<Box<[u8]>> for VerifyingKey<P>
impl<P: MayoParameter> TryFrom<Box<[u8]>> for VerifyingKey<P>
Source§impl<P> TryFrom<SubjectPublicKeyInfo<AnyRef<'_>, BitStringRef<'_>>> for VerifyingKey<P>
impl<P> TryFrom<SubjectPublicKeyInfo<AnyRef<'_>, BitStringRef<'_>>> for VerifyingKey<P>
Source§impl<P: MayoParameter> TryFrom<Vec<u8>> for VerifyingKey<P>
impl<P: MayoParameter> TryFrom<Vec<u8>> for VerifyingKey<P>
Source§impl<P: MayoParameter> Verifier<Signature<P>> for VerifyingKey<P>
impl<P: MayoParameter> Verifier<Signature<P>> for VerifyingKey<P>
impl<P: MayoParameter> Eq for VerifyingKey<P>
Auto Trait Implementations§
impl<P> Freeze for VerifyingKey<P>
impl<P> RefUnwindSafe for VerifyingKey<P>where
P: RefUnwindSafe,
impl<P> Send for VerifyingKey<P>
impl<P> Sync for VerifyingKey<P>
impl<P> Unpin for VerifyingKey<P>where
P: Unpin,
impl<P> UnsafeUnpin for VerifyingKey<P>
impl<P> UnwindSafe for VerifyingKey<P>where
P: UnwindSafe,
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> DecodePublicKey for T
impl<T> DecodePublicKey for T
Source§impl<T> DynSignatureAlgorithmIdentifier for Twhere
T: SignatureAlgorithmIdentifier,
impl<T> DynSignatureAlgorithmIdentifier for Twhere
T: SignatureAlgorithmIdentifier,
Source§fn signature_algorithm_identifier(
&self,
) -> Result<AlgorithmIdentifier<Any>, Error>
fn signature_algorithm_identifier( &self, ) -> Result<AlgorithmIdentifier<Any>, Error>
AlgorithmIdentifier for the corresponding signature system.Source§impl<T> ToHex for T
impl<T> ToHex for T
Source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Lower case
letters are used (e.g. f9b4ca)Source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Upper case
letters are used (e.g. F9B4CA)