pub struct Note<Fr: PrimeField> {
pub d: BoundedNum<Fr, { constants::DIVERSIFIER_SIZE_BITS }>,
pub p_d: Num<Fr>,
pub b: BoundedNum<Fr, { constants::BALANCE_SIZE_BITS }>,
pub t: BoundedNum<Fr, { constants::SALT_SIZE_BITS }>,
}
Fields§
§d: BoundedNum<Fr, { constants::DIVERSIFIER_SIZE_BITS }>
§p_d: Num<Fr>
§b: BoundedNum<Fr, { constants::BALANCE_SIZE_BITS }>
§t: BoundedNum<Fr, { constants::SALT_SIZE_BITS }>
Implementations§
Source§impl<Fr: PrimeField> Note<Fr>
impl<Fr: PrimeField> Note<Fr>
pub fn hash<P: PoolParams<Fr = Fr>>(&self, params: &P) -> Num<Fr>
Trait Implementations§
Source§impl<Fr: PrimeField> BorshDeserialize for Note<Fr>
impl<Fr: PrimeField> BorshDeserialize for Note<Fr>
Source§impl<Fr: PrimeField> BorshSerialize for Note<Fr>
impl<Fr: PrimeField> BorshSerialize for Note<Fr>
Source§impl<'de, Fr: PrimeField> Deserialize<'de> for Note<Fr>
impl<'de, Fr: PrimeField> Deserialize<'de> for Note<Fr>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<Fr: PrimeField> PartialEq for Note<Fr>
impl<Fr: PrimeField> PartialEq for Note<Fr>
Source§impl<Fr: PrimeField> Serialize for Note<Fr>
impl<Fr: PrimeField> Serialize for Note<Fr>
impl<Fr: PrimeField> Copy for Note<Fr>
impl<Fr: PrimeField> Eq for Note<Fr>
Auto Trait Implementations§
impl<Fr> Freeze for Note<Fr>where
Fr: Freeze,
impl<Fr> RefUnwindSafe for Note<Fr>where
Fr: RefUnwindSafe,
impl<Fr> Send for Note<Fr>where
Fr: Send,
impl<Fr> Sync for Note<Fr>where
Fr: Sync,
impl<Fr> Unpin for Note<Fr>where
Fr: Unpin,
impl<Fr> UnwindSafe for Note<Fr>where
Fr: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Out, S> FromSeed<S> for Outwhere
S: SeedBoxGen<Out>,
impl<Out, S> FromSeed<S> for Outwhere
S: SeedBoxGen<Out>,
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