struct PrecomputedValues<P: ParameterSet> {
A_hat: NttMatrix<BaseField, P::K, P::L>,
t1_2d_hat: NttVector<BaseField, P::K>,
tr: Array<u8, U64>,
}Expand description
Cached values derived from rho and t1 at key construction time to avoid re-expanding them
when verifying signatures.
Fields§
§A_hat: NttMatrix<BaseField, P::K, P::L>Expanded public matrix in NTT domain.
t1_2d_hat: NttVector<BaseField, P::K>2ᵈ ⋅ t1 which can be reused in signature verification.
tr: Array<u8, U64>Hash of the encoded public key, used to bind messages to the key this was precomputed from.
Implementations§
Source§impl<P: MlDsaParams> PrecomputedValues<P>
impl<P: MlDsaParams> PrecomputedValues<P>
Trait Implementations§
Source§impl<P: Clone + ParameterSet> Clone for PrecomputedValues<P>
impl<P: Clone + ParameterSet> Clone for PrecomputedValues<P>
Source§fn clone(&self) -> PrecomputedValues<P>
fn clone(&self) -> PrecomputedValues<P>
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<P: Debug + ParameterSet> Debug for PrecomputedValues<P>
impl<P: Debug + ParameterSet> Debug for PrecomputedValues<P>
Source§impl<P: PartialEq + ParameterSet> PartialEq for PrecomputedValues<P>
impl<P: PartialEq + ParameterSet> PartialEq for PrecomputedValues<P>
impl<P: ParameterSet> StructuralPartialEq for PrecomputedValues<P>
Auto Trait Implementations§
impl<P> Freeze for PrecomputedValues<P>where
<<P as ParameterSet>::K as ArraySize>::ArrayType<NttVector<BaseField, <P as ParameterSet>::L>>: Freeze,
<<P as ParameterSet>::K as ArraySize>::ArrayType<NttPolynomial<BaseField>>: Freeze,
impl<P> RefUnwindSafe for PrecomputedValues<P>where
<<P as ParameterSet>::K as ArraySize>::ArrayType<NttVector<BaseField, <P as ParameterSet>::L>>: RefUnwindSafe,
<<P as ParameterSet>::K as ArraySize>::ArrayType<NttPolynomial<BaseField>>: RefUnwindSafe,
impl<P> Send for PrecomputedValues<P>
impl<P> Sync for PrecomputedValues<P>
impl<P> Unpin for PrecomputedValues<P>where
<<P as ParameterSet>::K as ArraySize>::ArrayType<NttVector<BaseField, <P as ParameterSet>::L>>: Unpin,
<<P as ParameterSet>::K as ArraySize>::ArrayType<NttPolynomial<BaseField>>: Unpin,
impl<P> UnsafeUnpin for PrecomputedValues<P>where
<<P as ParameterSet>::K as ArraySize>::ArrayType<NttVector<BaseField, <P as ParameterSet>::L>>: UnsafeUnpin,
<<P as ParameterSet>::K as ArraySize>::ArrayType<NttPolynomial<BaseField>>: UnsafeUnpin,
impl<P> UnwindSafe for PrecomputedValues<P>where
<<P as ParameterSet>::K as ArraySize>::ArrayType<NttVector<BaseField, <P as ParameterSet>::L>>: UnwindSafe,
<<P as ParameterSet>::K as ArraySize>::ArrayType<NttPolynomial<BaseField>>: 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