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