[−][src]Struct ed25519_zebra::PublicKeyBytes
A refinement type for [u8; 32]
indicating that the bytes represent an
encoding of an Ed25519 public key.
This is useful for representing an encoded public key, while the
PublicKey
type in this library caches other decoded state used in
signature verification.
A PublicKeyBytes
can be used to verify a single signature using the
following idiom:
use std::convert::TryFrom; PublicKey::try_from(pk_bytes) .and_then(|pk| pk.verify(&sig, msg));
Trait Implementations
impl Clone for PublicKeyBytes
[src]
fn clone(&self) -> PublicKeyBytes
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for PublicKeyBytes
[src]
impl Debug for PublicKeyBytes
[src]
impl<'de> Deserialize<'de> for PublicKeyBytes
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for PublicKeyBytes
[src]
impl<'a> From<&'a SecretKey> for PublicKeyBytes
[src]
fn from(sk: &'a SecretKey) -> PublicKeyBytes
[src]
impl From<[u8; 32]> for PublicKeyBytes
[src]
impl From<PublicKey> for PublicKeyBytes
[src]
fn from(pk: PublicKey) -> PublicKeyBytes
[src]
impl From<PublicKeyBytes> for [u8; 32]
[src]
impl Hash for PublicKeyBytes
[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<PublicKeyBytes> for PublicKeyBytes
[src]
fn eq(&self, other: &PublicKeyBytes) -> bool
[src]
fn ne(&self, other: &PublicKeyBytes) -> bool
[src]
impl Serialize for PublicKeyBytes
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for PublicKeyBytes
[src]
impl StructuralPartialEq for PublicKeyBytes
[src]
impl TryFrom<PublicKeyBytes> for PublicKey
[src]
Auto Trait Implementations
impl RefUnwindSafe for PublicKeyBytes
impl Send for PublicKeyBytes
impl Sync for PublicKeyBytes
impl Unpin for PublicKeyBytes
impl UnwindSafe for PublicKeyBytes
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: Deserialize<'de>,
[src]
T: 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> 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,