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
Implementations§
Source§impl<E: JubjubEngine> Note<E>
impl<E: JubjubEngine> Note<E>
Auto Trait Implementations§
impl<E> Freeze for Note<E>
impl<E> RefUnwindSafe for Note<E>
impl<E> Send for Note<E>
impl<E> Sync for Note<E>
impl<E> Unpin for Note<E>
impl<E> UnwindSafe for Note<E>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more