Struct franklin_crypto::primitives::ViewingKey
source · pub struct ViewingKey<E: JubjubEngine> {
pub ak: Point<E, PrimeOrder>,
pub nk: Point<E, PrimeOrder>,
}
Fields§
§ak: Point<E, PrimeOrder>
§nk: Point<E, PrimeOrder>
Implementations§
source§impl<E: JubjubEngine> ViewingKey<E>
impl<E: JubjubEngine> ViewingKey<E>
pub fn rk(&self, ar: E::Fs, params: &E::Params) -> Point<E, PrimeOrder>
pub fn ivk(&self) -> E::Fs
pub fn into_payment_address( &self, diversifier: Diversifier, params: &E::Params, ) -> Option<PaymentAddress<E>>
Auto Trait Implementations§
impl<E> Freeze for ViewingKey<E>
impl<E> RefUnwindSafe for ViewingKey<E>
impl<E> Send for ViewingKey<E>
impl<E> Sync for ViewingKey<E>
impl<E> Unpin for ViewingKey<E>
impl<E> UnwindSafe for ViewingKey<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