Type Alias p256::BlindedScalar

source ·
pub type BlindedScalar = BlindedScalar<NistP256>;
Available on crate feature arithmetic only.
Expand description

Blinded scalar.

Aliased Type§

struct BlindedScalar { /* private fields */ }

Implementations

source§

impl<C> BlindedScalar<C>
where C: CurveArithmetic,

source

pub fn new( scalar: <C as CurveArithmetic>::Scalar, rng: &mut impl CryptoRngCore, ) -> BlindedScalar<C>

Create a new BlindedScalar from a scalar and a CryptoRngCore.

Trait Implementations

source§

impl<C> AsRef<<C as CurveArithmetic>::Scalar> for BlindedScalar<C>
where C: CurveArithmetic,

source§

fn as_ref(&self) -> &<C as CurveArithmetic>::Scalar

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<C> Clone for BlindedScalar<C>

source§

fn clone(&self) -> BlindedScalar<C>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<C> Drop for BlindedScalar<C>
where C: CurveArithmetic,

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl<C> Invert for BlindedScalar<C>
where C: CurveArithmetic,

§

type Output = CtOption<<C as CurveArithmetic>::Scalar>

Field element type
source§

fn invert(&self) -> CtOption<<C as CurveArithmetic>::Scalar>

Invert a field element.
source§

fn invert_vartime(&self) -> Self::Output

Invert a field element in variable time. Read more