[][src]Struct ed25519_zebra::VerificationKeyBytes

pub struct 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]

impl Copy for VerificationKeyBytes[src]

impl Debug for VerificationKeyBytes[src]

impl<'de> Deserialize<'de> for VerificationKeyBytes[src]

impl Eq for VerificationKeyBytes[src]

impl<'a> From<&'a SigningKey> for VerificationKeyBytes[src]

impl From<[u8; 32]> for VerificationKeyBytes[src]

impl From<VerificationKey> for VerificationKeyBytes[src]

impl From<VerificationKeyBytes> for [u8; 32][src]

impl Hash for VerificationKeyBytes[src]

impl Ord for VerificationKeyBytes[src]

impl PartialEq<VerificationKeyBytes> for VerificationKeyBytes[src]

impl PartialOrd<VerificationKeyBytes> for VerificationKeyBytes[src]

impl Serialize for VerificationKeyBytes[src]

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.

impl TryFrom<VerificationKeyBytes> for VerificationKey[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToHex for T where
    T: AsRef<[u8]>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.