pub struct PublicKey<E: JubjubEngine>(pub Point<E, Unknown>);
Tuple Fields§
§0: Point<E, Unknown>
Implementations§
Source§impl<E: JubjubEngine> PublicKey<E>
impl<E: JubjubEngine> PublicKey<E>
pub fn from_private( privkey: &PrivateKey<E>, p_g: FixedGenerators, params: &E::Params, ) -> Self
pub fn randomize( &self, alpha: E::Fs, p_g: FixedGenerators, params: &E::Params, ) -> Self
pub fn read<R: Read>(reader: R, params: &E::Params) -> Result<Self>
pub fn write<W: Write>(&self, writer: W) -> Result<()>
pub fn verify( &self, msg: &[u8], sig: &Signature, p_g: FixedGenerators, params: &E::Params, ) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for PublicKey<E>
impl<E> RefUnwindSafe for PublicKey<E>
impl<E> Send for PublicKey<E>
impl<E> Sync for PublicKey<E>
impl<E> Unpin for PublicKey<E>
impl<E> UnwindSafe for PublicKey<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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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