[][src]Struct sapling_crypto_ce::redjubjub::PrivateKey

pub struct PrivateKey<E: JubjubEngine>(pub E::Fs);

Implementations

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

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

pub fn read<R: Read>(reader: R) -> Result<Self>[src]

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

pub fn sign<R: Rng>(
    &self,
    msg: &[u8],
    rng: &mut R,
    p_g: FixedGenerators,
    params: &E::Params
) -> Signature
[src]

Auto Trait Implementations

impl<E> RefUnwindSafe for PrivateKey<E> where
    <E as JubjubEngine>::Fs: RefUnwindSafe

impl<E> Send for PrivateKey<E> where
    <E as JubjubEngine>::Fs: Send

impl<E> Sync for PrivateKey<E> where
    <E as JubjubEngine>::Fs: Sync

impl<E> Unpin for PrivateKey<E> where
    <E as JubjubEngine>::Fs: Unpin

impl<E> UnwindSafe for PrivateKey<E> where
    <E as JubjubEngine>::Fs: 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> 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, 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.