pub struct PublicKey<K: FiniteField> {
pub x1: K,
pub x2: K,
pub x3: K,
}Expand description
Public key
The public key is a curve, but can be represented as a triple of points, of which only the x-coordinate is stored.
Fields§
§x1: KFirst point
x2: KSecond point
x3: KThird point
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<K> Freeze for PublicKey<K>where
K: Freeze,
impl<K> RefUnwindSafe for PublicKey<K>where
K: RefUnwindSafe,
impl<K> Send for PublicKey<K>where
K: Send,
impl<K> Sync for PublicKey<K>where
K: Sync,
impl<K> Unpin for PublicKey<K>where
K: Unpin,
impl<K> UnwindSafe for PublicKey<K>where
K: 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> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.