Struct libsecp256k1::curve::ECMultContext
source · pub struct ECMultContext { /* private fields */ }
Expand description
Context for accelerating the computation of aP + bG.
Implementations§
source§impl ECMultContext
impl ECMultContext
source§impl ECMultContext
impl ECMultContext
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