[][src]Struct sapling_crypto_ce::primitives::Note

pub struct Note<E: JubjubEngine> {
    pub value: u64,
    pub g_d: Point<E, PrimeOrder>,
    pub pk_d: Point<E, PrimeOrder>,
    pub r: E::Fs,
}

Fields

value: u64

The value of the note

g_d: Point<E, PrimeOrder>

The diversified base of the address, GH(d)

pk_d: Point<E, PrimeOrder>

The public key of the address, g_d^ivk

r: E::Fs

The commitment randomness

Methods

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

pub fn uncommitted() -> E::Fr[src]

pub fn nf(
    &self,
    viewing_key: &ViewingKey<E>,
    position: u64,
    params: &E::Params
) -> Vec<u8>
[src]

Computes the nullifier given the viewing key and note position

pub fn cm(&self, params: &E::Params) -> E::Fr[src]

Computes the note commitment

Auto Trait Implementations

impl<E> Send for Note<E> where
    <E as ScalarEngine>::Fr: Send,
    <E as JubjubEngine>::Fs: Send

impl<E> Sync for Note<E> where
    <E as ScalarEngine>::Fr: Sync,
    <E as JubjubEngine>::Fs: Sync

impl<E> Unpin for Note<E> where
    <E as ScalarEngine>::Fr: Unpin,
    <E as JubjubEngine>::Fs: Unpin

impl<E> UnwindSafe for Note<E> where
    <E as ScalarEngine>::Fr: UnwindSafe,
    <E as JubjubEngine>::Fs: UnwindSafe

impl<E> RefUnwindSafe for Note<E> where
    <E as ScalarEngine>::Fr: RefUnwindSafe,
    <E as JubjubEngine>::Fs: RefUnwindSafe

Blanket Implementations

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

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

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