pub struct VariableOnly;Expand description
Simple backend that only supports variable-base scalar multiplication.
Trait Implementations§
Source§impl<C: PrimeCurveParams> MulBackend<C> for VariableOnly
impl<C: PrimeCurveParams> MulBackend<C> for VariableOnly
Source§fn mul_by_generator(k: &Scalar<C>) -> ProjectivePoint<C>
fn mul_by_generator(k: &Scalar<C>) -> ProjectivePoint<C>
Multiplication by the generator. Read more
Source§fn mul_by_generator_vartime(k: &Scalar<C>) -> ProjectivePoint<C>
fn mul_by_generator_vartime(k: &Scalar<C>) -> ProjectivePoint<C>
Variable-time multiplication by the generator. Read more
Source§fn mul_by_generator_and_mul_add_vartime(
a: &Scalar<C>,
b_scalar: &Scalar<C>,
b_point: &ProjectivePoint<C>,
) -> ProjectivePoint<C>
fn mul_by_generator_and_mul_add_vartime( a: &Scalar<C>, b_scalar: &Scalar<C>, b_point: &ProjectivePoint<C>, ) -> ProjectivePoint<C>
Multiply
a by the generator of the prime-order subgroup, adding the result to the point
P multiplied by the scalar b, i.e. compute aG + bP.Auto Trait Implementations§
impl Freeze for VariableOnly
impl RefUnwindSafe for VariableOnly
impl Send for VariableOnly
impl Sync for VariableOnly
impl Unpin for VariableOnly
impl UnsafeUnpin for VariableOnly
impl UnwindSafe for VariableOnly
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