1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
pub(crate) mod bytes;
#[cfg(feature = "arithmetic")]
pub(crate) mod non_zero;
#[cfg(feature = "arithmetic")]
use {
    crate::ProjectiveArithmetic,
    ff::{FieldBits, PrimeField},
    group::Group,
};
#[cfg(feature = "arithmetic")]
#[cfg_attr(docsrs, doc(cfg(feature = "arithmetic")))]
pub type Scalar<C> = <<C as ProjectiveArithmetic>::ProjectivePoint as Group>::Scalar;
#[cfg(feature = "arithmetic")]
#[cfg_attr(docsrs, doc(cfg(feature = "arithmetic")))]
pub type ScalarBits<C> = FieldBits<<Scalar<C> as PrimeField>::ReprBits>;