[−][src]Struct sapling_crypto_ce::primitives::Note
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]
&self,
viewing_key: &ViewingKey<E>,
position: u64,
params: &E::Params
) -> Vec<u8>
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,
<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,
<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,
<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,
<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,
<E as ScalarEngine>::Fr: RefUnwindSafe,
<E as JubjubEngine>::Fs: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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> Same<T> for T
type Output = T
Should always be Self