[−][src]Struct ed25519_zebra::VerificationKeyBytes
A refinement type for [u8; 32]
indicating that the bytes represent an
encoding of an Ed25519 verification key.
This is useful for representing an encoded verification key, while the
VerificationKey
type in this library caches other decoded state used in
signature verification.
A VerificationKeyBytes
can be used to verify a single signature using the
following idiom:
use std::convert::TryFrom; VerificationKey::try_from(vk_bytes) .and_then(|vk| vk.verify(&sig, msg));
Trait Implementations
impl AsRef<[u8]> for VerificationKeyBytes
[src]
impl Clone for VerificationKeyBytes
[src]
fn clone(&self) -> VerificationKeyBytes
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for VerificationKeyBytes
[src]
impl Debug for VerificationKeyBytes
[src]
impl<'de> Deserialize<'de> for VerificationKeyBytes
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for VerificationKeyBytes
[src]
impl<'a> From<&'a SigningKey> for VerificationKeyBytes
[src]
fn from(sk: &'a SigningKey) -> VerificationKeyBytes
[src]
impl From<[u8; 32]> for VerificationKeyBytes
[src]
impl From<VerificationKey> for VerificationKeyBytes
[src]
fn from(vk: VerificationKey) -> VerificationKeyBytes
[src]
impl From<VerificationKeyBytes> for [u8; 32]
[src]
impl Hash for VerificationKeyBytes
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<VerificationKeyBytes> for VerificationKeyBytes
[src]
fn eq(&self, other: &VerificationKeyBytes) -> bool
[src]
fn ne(&self, other: &VerificationKeyBytes) -> bool
[src]
impl Serialize for VerificationKeyBytes
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for VerificationKeyBytes
[src]
impl StructuralPartialEq for VerificationKeyBytes
[src]
impl<'_> TryFrom<&'_ [u8]> for VerificationKeyBytes
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(slice: &[u8]) -> Result<VerificationKeyBytes, Error>
[src]
impl TryFrom<VerificationKeyBytes> for VerificationKey
[src]
Auto Trait Implementations
impl RefUnwindSafe for VerificationKeyBytes
impl Send for VerificationKeyBytes
impl Sync for VerificationKeyBytes
impl Unpin for VerificationKeyBytes
impl UnwindSafe for VerificationKeyBytes
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToHex for T where
T: AsRef<[u8]>,
[src]
T: AsRef<[u8]>,
fn encode_hex<U>(&self) -> U where
U: FromIterator<char>,
[src]
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> U where
U: FromIterator<char>,
[src]
U: FromIterator<char>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,