pub struct ExpandedVerifyingKey<P: MayoParameter> { /* private fields */ }Expand description
A MAYO verifying key with cached expanded public material.
This keeps the compact public key bytes for serialization and equality, and additionally stores expanded public data used by verification.
Implementations§
Source§impl<P: MayoParameter> ExpandedVerifyingKey<P>
impl<P: MayoParameter> ExpandedVerifyingKey<P>
Sourcepub fn compact(&self) -> VerifyingKey<P>
pub fn compact(&self) -> VerifyingKey<P>
Return the compact verifying key form.
Sourcepub fn context(&self) -> VerificationContext<P>
pub fn context(&self) -> VerificationContext<P>
Create a reusable verification context for this expanded key.
Trait Implementations§
Source§impl<P: MayoParameter> AsRef<[u8]> for ExpandedVerifyingKey<P>
impl<P: MayoParameter> AsRef<[u8]> for ExpandedVerifyingKey<P>
Source§impl<P: Clone + MayoParameter> Clone for ExpandedVerifyingKey<P>
impl<P: Clone + MayoParameter> Clone for ExpandedVerifyingKey<P>
Source§fn clone(&self) -> ExpandedVerifyingKey<P>
fn clone(&self) -> ExpandedVerifyingKey<P>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ExpandedVerifyingKey<P>
impl<P: MayoParameter> Debug for ExpandedVerifyingKey<P>
Source§impl<'de, P: MayoParameter> Deserialize<'de> for ExpandedVerifyingKey<P>
Available on crate feature serde only.
impl<'de, P: MayoParameter> Deserialize<'de> for ExpandedVerifyingKey<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
impl<P: MayoParameter> Eq for ExpandedVerifyingKey<P>
Source§impl<P: MayoParameter> From<&ExpandedVerifyingKey<P>> for VerificationContext<P>
impl<P: MayoParameter> From<&ExpandedVerifyingKey<P>> for VerificationContext<P>
Source§fn from(key: &ExpandedVerifyingKey<P>) -> Self
fn from(key: &ExpandedVerifyingKey<P>) -> Self
Converts to this type from the input type.
Source§impl<P: MayoParameter> From<&SigningKey<P>> for ExpandedVerifyingKey<P>
impl<P: MayoParameter> From<&SigningKey<P>> for ExpandedVerifyingKey<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> From<&VerifyingKey<P>> for ExpandedVerifyingKey<P>
impl<P: MayoParameter> From<&VerifyingKey<P>> for ExpandedVerifyingKey<P>
Source§fn from(vk: &VerifyingKey<P>) -> Self
fn from(vk: &VerifyingKey<P>) -> Self
Converts to this type from the input type.
Source§impl<P: MayoParameter> PartialEq for ExpandedVerifyingKey<P>
impl<P: MayoParameter> PartialEq for ExpandedVerifyingKey<P>
Source§impl<P: MayoParameter> Serialize for ExpandedVerifyingKey<P>
Available on crate feature serde only.
impl<P: MayoParameter> Serialize for ExpandedVerifyingKey<P>
Available on crate feature
serde only.Source§impl<P: MayoParameter> TryFrom<&Vec<u8>> for ExpandedVerifyingKey<P>
impl<P: MayoParameter> TryFrom<&Vec<u8>> for ExpandedVerifyingKey<P>
Source§impl<P: MayoParameter> TryFrom<&[u8]> for ExpandedVerifyingKey<P>
impl<P: MayoParameter> TryFrom<&[u8]> for ExpandedVerifyingKey<P>
Source§impl<P: MayoParameter> TryFrom<Box<[u8]>> for ExpandedVerifyingKey<P>
impl<P: MayoParameter> TryFrom<Box<[u8]>> for ExpandedVerifyingKey<P>
Source§impl<P: MayoParameter> TryFrom<Vec<u8>> for ExpandedVerifyingKey<P>
impl<P: MayoParameter> TryFrom<Vec<u8>> for ExpandedVerifyingKey<P>
Auto Trait Implementations§
impl<P> Freeze for ExpandedVerifyingKey<P>
impl<P> RefUnwindSafe for ExpandedVerifyingKey<P>where
P: RefUnwindSafe,
impl<P> Send for ExpandedVerifyingKey<P>
impl<P> Sync for ExpandedVerifyingKey<P>
impl<P> Unpin for ExpandedVerifyingKey<P>where
P: Unpin,
impl<P> UnsafeUnpin for ExpandedVerifyingKey<P>
impl<P> UnwindSafe for ExpandedVerifyingKey<P>where
P: UnwindSafe,
Blanket Implementations§
Source§impl<S, T> AsyncVerifier<S> for Twhere
T: Verifier<S>,
impl<S, T> AsyncVerifier<S> for Twhere
T: Verifier<S>,
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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)