[−][src]Struct redjubjub::PublicKeyBytes
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: SigType> From<[u8; 32]> for PublicKeyBytes<T>
[src]
impl<T: SigType> From<PublicKeyBytes<T>> for [u8; 32]
[src]
impl<T: SigType> From<PublicKey<T>> for PublicKeyBytes<T>
[src]
fn from(pk: PublicKey<T>) -> PublicKeyBytes<T>
[src]
impl<T: Clone + SigType> Clone for PublicKeyBytes<T>
[src]
fn clone(&self) -> PublicKeyBytes<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Copy + SigType> Copy for PublicKeyBytes<T>
[src]
impl<T: Eq + SigType> Eq for PublicKeyBytes<T>
[src]
impl<T: PartialEq + SigType> PartialEq<PublicKeyBytes<T>> for PublicKeyBytes<T>
[src]
fn eq(&self, other: &PublicKeyBytes<T>) -> bool
[src]
fn ne(&self, other: &PublicKeyBytes<T>) -> bool
[src]
impl<T: Debug + SigType> Debug 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.
fn try_from(bytes: PublicKeyBytes<T>) -> Result<Self, Self::Error>
[src]
impl<T: SigType> StructuralPartialEq for PublicKeyBytes<T>
[src]
impl<T: SigType> StructuralEq for PublicKeyBytes<T>
[src]
impl<T: SigType> Serialize for PublicKeyBytes<T>
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de, T: SigType> Deserialize<'de> for PublicKeyBytes<T>
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl<T> Send for PublicKeyBytes<T> where
T: Send,
T: Send,
impl<T> Sync for PublicKeyBytes<T> where
T: Sync,
T: Sync,
impl<T> Unpin for PublicKeyBytes<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for PublicKeyBytes<T> where
T: UnwindSafe,
T: UnwindSafe,
impl<T> RefUnwindSafe for PublicKeyBytes<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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 = !
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<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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,