pub struct ECMultContext { /* private fields */ }
Expand description
Context for accelerating the computation of aP + bG.
Implementations§
Source§impl ECMultContext
impl ECMultContext
Sourcepub const unsafe fn new_from_raw(pre_g: [AffineStorage; 16384]) -> ECMultContext
pub const unsafe fn new_from_raw(pre_g: [AffineStorage; 16384]) -> ECMultContext
Create a new ECMultContext
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 ECMultContext::new_boxed
.
Sourcepub fn inspect_raw(&self) -> &[AffineStorage; 16384]
pub fn inspect_raw(&self) -> &[AffineStorage; 16384]
Inspect raw values of ECMultContext
.
Sourcepub fn new_boxed() -> Box<ECMultContext>
pub fn new_boxed() -> Box<ECMultContext>
Generate a new ECMultContext
on the heap. Note that this function is expensive.
Auto Trait Implementations§
impl Freeze for ECMultContext
impl RefUnwindSafe for ECMultContext
impl Send for ECMultContext
impl Sync for ECMultContext
impl Unpin for ECMultContext
impl UnwindSafe for ECMultContext
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