Struct libsecp256k1_core::curve::ECMultContext
source · [−]pub struct ECMultContext { /* private fields */ }
Expand description
Context for accelerating the computation of aP + bG.
Implementations
pub fn ecdh_raw<D: Digest + Default>(
&self,
point: &Affine,
scalar: &Scalar
) -> Option<GenericArray<u8, D::OutputSize>>
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
.
Inspect raw values of ECMultContext
.