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,
impl<C> BlindedScalar<C>where
C: CurveArithmetic,
sourcepub fn new(
scalar: <C as CurveArithmetic>::Scalar,
rng: &mut impl CryptoRngCore,
) -> BlindedScalar<C>
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,
impl<C> AsRef<<C as CurveArithmetic>::Scalar> for BlindedScalar<C>where
C: CurveArithmetic,
source§fn as_ref(&self) -> &<C as CurveArithmetic>::Scalar
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>where
C: Clone + CurveArithmetic,
impl<C> Clone for BlindedScalar<C>where
C: Clone + CurveArithmetic,
source§fn clone(&self) -> BlindedScalar<C>
fn clone(&self) -> BlindedScalar<C>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more