pub struct EndoMulResult<F> {
pub acc: (F, F),
pub n: F,
}Expand description
The result of performing an endomorphism-optimized scalar multiplication.
After processing all scalar bits through the EndoMul gates, this struct holds:
- The final accumulated curve point (as affine coordinates)
- The reconstructed scalar value from the processed bits
Fields§
§acc: (F, F)The final accumulated point (x, y) after all scalar multiplication
steps.
This equals [scalar]T where T is the base point and scalar is
derived from the input bits combined with the endomorphism.
n: FThe accumulated scalar value reconstructed from all processed bits.
For a 128-bit scalar processed in 32 rows (4 bits/row), this equals
the original scalar k such that acc = [k]T (with endomorphism
applied).
Auto Trait Implementations§
impl<F> Freeze for EndoMulResult<F>where
F: Freeze,
impl<F> RefUnwindSafe for EndoMulResult<F>where
F: RefUnwindSafe,
impl<F> Send for EndoMulResult<F>where
F: Send,
impl<F> Sync for EndoMulResult<F>where
F: Sync,
impl<F> Unpin for EndoMulResult<F>where
F: Unpin,
impl<F> UnsafeUnpin for EndoMulResult<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for EndoMulResult<F>where
F: 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