pub struct PublicKey(_);
Expand description
Structure repesenting a PublicKey
Implementations
sourceimpl PublicKey
impl PublicKey
sourcepub const fn from_raw_unchecked(key: JubJubExtended) -> Self
pub const fn from_raw_unchecked(key: JubJubExtended) -> Self
Create a public key from its internal parts
The public keys are generated from a bijective function that takes a secret keys domain. If keys are generated directly from curve points, there is no guarantee a secret key exists - in fact, the discrete logarithm property will guarantee the secret key cannot be extracted from this public key.
If you opt to generate the keys manually, be sure you have its secret counterpart - otherwise this key will be of no use.
Trait Implementations
sourceimpl AsRef<JubJubExtended> for PublicKey
impl AsRef<JubJubExtended> for PublicKey
sourcefn as_ref(&self) -> &JubJubExtended
fn as_ref(&self) -> &JubJubExtended
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl From<&JubJubExtended> for PublicKey
impl From<&JubJubExtended> for PublicKey
sourcefn from(p: &JubJubExtended) -> PublicKey
fn from(p: &JubJubExtended) -> PublicKey
Converts to this type from the input type.
sourceimpl From<JubJubExtended> for PublicKey
impl From<JubJubExtended> for PublicKey
sourcefn from(p: JubJubExtended) -> PublicKey
fn from(p: JubJubExtended) -> PublicKey
Converts to this type from the input type.
sourceimpl Serializable<32> for PublicKey
impl Serializable<32> for PublicKey
impl Copy for PublicKey
impl Eq for PublicKey
Auto Trait Implementations
impl RefUnwindSafe for PublicKey
impl Send for PublicKey
impl Sync for PublicKey
impl Unpin for PublicKey
impl UnwindSafe for PublicKey
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T, const N: usize> DeserializableSlice<N> for T where
T: Serializable<N>,
impl<T, const N: usize> DeserializableSlice<N> for T where
T: Serializable<N>,
sourceimpl<T, const N: usize> ParseHexStr<N> for T where
T: Serializable<N>,
impl<T, const N: usize> ParseHexStr<N> for T where
T: Serializable<N>,
sourcefn from_hex_str(s: &str) -> Result<Self, Self::Error> where
Self::Error: BadLength,
Self::Error: InvalidChar,
fn from_hex_str(s: &str) -> Result<Self, Self::Error> where
Self::Error: BadLength,
Self::Error: InvalidChar,
Parse a string slice as bytes hex representation and returns `