pub struct ECMultGenContext { /* private fields */ }
Expand description
Context for accelerating the computation of a*G.
Implementations§
Source§impl ECMultGenContext
impl ECMultGenContext
Sourcepub const unsafe fn new_from_raw(
prec: [[AffineStorage; 16]; 64],
) -> ECMultGenContext
pub const unsafe fn new_from_raw( prec: [[AffineStorage; 16]; 64], ) -> ECMultGenContext
Create a new ECMultGenContext
from raw values.
§Safety
The function is unsafe because incorrect value of pre_g
can lead to
crypto logic failure. You most likely do not want to use this function,
but ECMultGenContext::new_boxed
.
Sourcepub fn inspect_raw(&self) -> &[[AffineStorage; 16]; 64]
pub fn inspect_raw(&self) -> &[[AffineStorage; 16]; 64]
Inspect ECMultGenContext
values.
Sourcepub fn new_boxed() -> Box<ECMultGenContext>
pub fn new_boxed() -> Box<ECMultGenContext>
Generate a new ECMultGenContext
on the heap. Note that this function is expensive.
Source§impl ECMultGenContext
impl ECMultGenContext
pub fn ecmult_gen(&self, r: &mut Jacobian, gn: &Scalar)
Auto Trait Implementations§
impl Freeze for ECMultGenContext
impl RefUnwindSafe for ECMultGenContext
impl Send for ECMultGenContext
impl Sync for ECMultGenContext
impl Unpin for ECMultGenContext
impl UnwindSafe for ECMultGenContext
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