Struct libsecp256k1_core::curve::Scalar [−][src]
Expand description
A 256-bit scalar value.
Implementations
Access bits from a scalar. All requested bits must belong to the same 32-bit limb.
Access bits from a scalar. Not constant time.
Conditionally add a power of two to a scalar. The result is not allowed to overflow.
Set a scalar from a big endian byte array, return whether it overflowed.
Check whether a scalar is higher than the group order divided by 2.
Conditionally negate a number, in constant time.
Shift a scalar right by some amount strictly between 0 and 16, returning the low bits that were shifted off.
Trait Implementations
Performs the +=
operation. Read more
Performs the +=
operation. Read more
Performs the *=
operation. Read more
Performs the *=
operation. Read more
Auto Trait Implementations
impl RefUnwindSafe for Scalar
impl UnwindSafe for Scalar
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self