pub struct LookupTableRadix256<T>(pub(crate) [T; 128]);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; 128]Implementations§
Source§impl<T> LookupTableRadix256<T>
impl<T> LookupTableRadix256<T>
Trait Implementations§
Source§impl<T: Clone> Clone for LookupTableRadix256<T>
impl<T: Clone> Clone for LookupTableRadix256<T>
Source§fn clone(&self) -> LookupTableRadix256<T>
fn clone(&self) -> LookupTableRadix256<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 LookupTableRadix256<T>
impl<T: Debug> Debug for LookupTableRadix256<T>
Source§impl<T: Copy + Default> Default for LookupTableRadix256<T>
impl<T: Copy + Default> Default for LookupTableRadix256<T>
Source§fn default() -> LookupTableRadix256<T>
fn default() -> LookupTableRadix256<T>
Returns the “default value” for a type. Read more
Source§impl<'a> From<&'a EdwardsPoint> for LookupTableRadix256<AffineNielsPoint>
impl<'a> From<&'a EdwardsPoint> for LookupTableRadix256<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 LookupTableRadix256<ProjectiveNielsPoint>
impl<'a> From<&'a EdwardsPoint> for LookupTableRadix256<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 LookupTableRadix256<T>
impl<T> Zeroize for LookupTableRadix256<T>
impl<T: Copy> Copy for LookupTableRadix256<T>
Auto Trait Implementations§
impl<T> Freeze for LookupTableRadix256<T>where
T: Freeze,
impl<T> RefUnwindSafe for LookupTableRadix256<T>where
T: RefUnwindSafe,
impl<T> Send for LookupTableRadix256<T>where
T: Send,
impl<T> Sync for LookupTableRadix256<T>where
T: Sync,
impl<T> Unpin for LookupTableRadix256<T>where
T: Unpin,
impl<T> UnwindSafe for LookupTableRadix256<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