[][src]Struct redjubjub::PublicKeyBytes

pub struct PublicKeyBytes<T: SigType> { /* fields omitted */ }

A refinement type for [u8; 32] indicating that the bytes represent an encoding of a RedJubJub public key.

This is useful for representing a compressed public key; the PublicKey type in this library holds other decompressed state used in signature verification.

Trait Implementations

impl<T: Clone + SigType> Clone for PublicKeyBytes<T>[src]

impl<T: Copy + SigType> Copy for PublicKeyBytes<T>[src]

impl<T: Debug + SigType> Debug for PublicKeyBytes<T>[src]

impl<'de, T: SigType> Deserialize<'de> for PublicKeyBytes<T>[src]

impl<T: Eq + SigType> Eq for PublicKeyBytes<T>[src]

impl<T: SigType> From<[u8; 32]> for PublicKeyBytes<T>[src]

impl<T: SigType> From<PublicKey<T>> for PublicKeyBytes<T>[src]

impl<T: SigType> From<PublicKeyBytes<T>> for [u8; 32][src]

impl<T: PartialEq + SigType> PartialEq<PublicKeyBytes<T>> for PublicKeyBytes<T>[src]

impl<T: SigType> Serialize for PublicKeyBytes<T>[src]

impl<T: SigType> StructuralEq for PublicKeyBytes<T>[src]

impl<T: SigType> StructuralPartialEq for PublicKeyBytes<T>[src]

impl<T: SigType> TryFrom<PublicKeyBytes<T>> for PublicKey<T>[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<T> RefUnwindSafe for PublicKeyBytes<T> where
    T: RefUnwindSafe

impl<T> Send for PublicKeyBytes<T> where
    T: Send

impl<T> Sync for PublicKeyBytes<T> where
    T: Sync

impl<T> Unpin for PublicKeyBytes<T> where
    T: Unpin

impl<T> UnwindSafe for PublicKeyBytes<T> where
    T: UnwindSafe

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: Deserialize<'de>, 
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.