oblast_demo/
constants.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
use num_bigint::BigUint;

pub const MODULUS_BIT_SIZE: usize = 255;

/// Return the order of the group(s) defined over elliptic curves in BLS12-381. The `r` in `Fr`.
/// TODO: change this name to modulus
pub fn curve_order() -> BigUint {
    BigUint::parse_bytes(
        b"52435875175126190479447740508185965837690552500527637822603658699938581184513",
        10,
    )
    .unwrap()
}