[][src]Struct secp256k1::curve::ECMultContext

pub struct ECMultContext { /* fields omitted */ }

Context for accelerating the computation of aP + bG.

Implementations

impl ECMultContext[src]

pub fn ecmult(&self, r: &mut Jacobian, a: &Jacobian, na: &Scalar, ng: &Scalar)[src]

pub fn ecmult_const(&self, r: &mut Jacobian, a: &Affine, scalar: &Scalar)[src]

impl ECMultContext[src]

pub fn verify_raw(
    &self,
    sigr: &Scalar,
    sigs: &Scalar,
    pubkey: &Affine,
    message: &Scalar
) -> bool
[src]

pub fn recover_raw(
    &self,
    sigr: &Scalar,
    sigs: &Scalar,
    rec_id: u8,
    message: &Scalar
) -> Result<Affine, Error>
[src]

impl ECMultContext[src]

pub fn ecdh_raw<D: Digest + Default>(
    &self,
    point: &Affine,
    scalar: &Scalar
) -> Option<GenericArray<u8, D::OutputSize>>
[src]

Auto Trait Implementations

impl RefUnwindSafe for ECMultContext

impl Send for ECMultContext

impl Sync for ECMultContext

impl Unpin for ECMultContext

impl UnwindSafe for ECMultContext

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]