pub struct LookupTableRadix128<T>(pub(crate) [T; 64]);Expand description
A lookup table of precomputed multiples of a point \(P\), used to compute \( xP \) for \( -8 \leq x \leq 8 \).
The computation of \( xP \) is done in constant time by the select function.
Since LookupTable does not implement Index, it’s more difficult
to accidentally use the table directly. Unfortunately the table is
only pub(crate) so that we can write hardcoded constants, so it’s
still technically possible. It would be nice to prevent direct
access to the table.
Tuple Fields§
§0: [T; 64]Implementations§
Source§impl<T> LookupTableRadix128<T>
impl<T> LookupTableRadix128<T>
Trait Implementations§
Source§impl<T: Clone> Clone for LookupTableRadix128<T>
impl<T: Clone> Clone for LookupTableRadix128<T>
Source§fn clone(&self) -> LookupTableRadix128<T>
fn clone(&self) -> LookupTableRadix128<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for LookupTableRadix128<T>
impl<T: Debug> Debug for LookupTableRadix128<T>
Source§impl<T: Copy + Default> Default for LookupTableRadix128<T>
impl<T: Copy + Default> Default for LookupTableRadix128<T>
Source§fn default() -> LookupTableRadix128<T>
fn default() -> LookupTableRadix128<T>
Returns the “default value” for a type. Read more
Source§impl<'a> From<&'a EdwardsPoint> for LookupTableRadix128<AffineNielsPoint>
impl<'a> From<&'a EdwardsPoint> for LookupTableRadix128<AffineNielsPoint>
Source§fn from(P: &'a EdwardsPoint) -> Self
fn from(P: &'a EdwardsPoint) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a EdwardsPoint> for LookupTableRadix128<ProjectiveNielsPoint>
impl<'a> From<&'a EdwardsPoint> for LookupTableRadix128<ProjectiveNielsPoint>
Source§fn from(P: &'a EdwardsPoint) -> Self
fn from(P: &'a EdwardsPoint) -> Self
Converts to this type from the input type.
Source§impl<T> Zeroize for LookupTableRadix128<T>
impl<T> Zeroize for LookupTableRadix128<T>
impl<T: Copy> Copy for LookupTableRadix128<T>
Auto Trait Implementations§
impl<T> Freeze for LookupTableRadix128<T>where
T: Freeze,
impl<T> RefUnwindSafe for LookupTableRadix128<T>where
T: RefUnwindSafe,
impl<T> Send for LookupTableRadix128<T>where
T: Send,
impl<T> Sync for LookupTableRadix128<T>where
T: Sync,
impl<T> Unpin for LookupTableRadix128<T>where
T: Unpin,
impl<T> UnwindSafe for LookupTableRadix128<T>where
T: 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