Skip to main content

NonZeroScalar

Type Alias NonZeroScalar 

Source
pub type NonZeroScalar = NonZeroScalar<Secp256k1>;
Expand description

Non-zero secp256k1 (K-256) scalar field element.

Aliased Type§

pub struct NonZeroScalar { /* private fields */ }

Trait Implementations§

Source§

impl TryFrom<Scalar> for NonZeroScalar

The constant-time alternative is available at NonZeroScalar::new().

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(scalar: Scalar) -> Result<Self, Error>

Performs the conversion.