Struct libsecp256k1_core::curve::ECMultContext
source · pub struct ECMultContext { /* private fields */ }
Expand description
Context for accelerating the computation of aP + bG.
Implementations§
source§impl ECMultContext
impl ECMultContext
pub fn ecdh_raw<D: Digest + Default>( &self, point: &Affine, scalar: &Scalar, ) -> Option<GenericArray<u8, D::OutputSize>>
source§impl ECMultContext
impl ECMultContext
source§impl ECMultContext
impl ECMultContext
sourcepub const unsafe fn new_from_raw(pre_g: [AffineStorage; 16384]) -> Self
pub const unsafe fn new_from_raw(pre_g: [AffineStorage; 16384]) -> Self
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
.
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