[][src]Struct sapling_crypto_ce::redjubjub::PublicKey

pub struct PublicKey<E: JubjubEngine>(pub Point<E, Unknown>);

Methods

impl<E: JubjubEngine> PublicKey<E>[src]

pub fn from_private(
    privkey: &PrivateKey<E>,
    p_g: FixedGenerators,
    params: &E::Params
) -> Self
[src]

pub fn randomize(
    &self,
    alpha: E::Fs,
    p_g: FixedGenerators,
    params: &E::Params
) -> Self
[src]

pub fn read<R: Read>(reader: R, params: &E::Params) -> Result<Self>[src]

pub fn write<W: Write>(&self, writer: W) -> Result<()>[src]

pub fn verify(
    &self,
    msg: &[u8],
    sig: &Signature,
    p_g: FixedGenerators,
    params: &E::Params
) -> bool
[src]

Trait Implementations

impl<E: Clone + JubjubEngine> Clone for PublicKey<E>[src]

Auto Trait Implementations

impl<E> Send for PublicKey<E> where
    <E as ScalarEngine>::Fr: Send

impl<E> Sync for PublicKey<E> where
    <E as ScalarEngine>::Fr: Sync

impl<E> Unpin for PublicKey<E> where
    <E as ScalarEngine>::Fr: Unpin

impl<E> UnwindSafe for PublicKey<E> where
    <E as ScalarEngine>::Fr: UnwindSafe

impl<E> RefUnwindSafe for PublicKey<E> where
    <E as ScalarEngine>::Fr: RefUnwindSafe

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self