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
.