Add public Scalar type alias for Fr

This commit is contained in:
Deirdre Connolly 2020-03-29 03:06:46 -04:00
parent 8e9337ee1b
commit 109ec40d2a
1 changed files with 3 additions and 0 deletions

View File

@ -42,6 +42,9 @@ mod fr;
pub use bls12_381::Scalar as Fq;
pub use fr::Fr;
/// A better name than Fr.
pub type Scalar = Fr;
const FR_MODULUS_BYTES: [u8; 32] = [
183, 44, 247, 214, 94, 14, 151, 208, 130, 16, 200, 204, 147, 32, 104, 166, 0, 59, 52, 1, 1, 59,
103, 6, 169, 175, 51, 101, 234, 180, 125, 14,