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<E>, p_g: FixedGenerators, params: &E::Params, ) -> bool
pub fn verify_for_raw_message( &self, msg: &[u8], sig: &Signature<E>, p_g: FixedGenerators, params: &E::Params, max_message_size: usize, ) -> bool
pub fn verify_schnorr_blake2s( &self, msg: &[u8], sig: &Signature<E>, p_g: FixedGenerators, params: &E::Params, ) -> bool
pub fn verify_musig_sha256( &self, msg: &[u8], sig: &Signature<E>, p_g: FixedGenerators, params: &E::Params, ) -> bool
pub fn verify_serialized( &self, msg: &[u8], sig: &SerializedSignature, 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> UnsafeUnpin 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