Merge pull request #33 from ZcashFoundation/scalar

Add public Scalar type alias for Fr
This commit is contained in:
str4d 2020-04-24 15:14:07 +12:00 committed by GitHub
commit af5598dac6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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,