oblast_demo/constants.rs
1use num_bigint::BigUint;
2
3pub const MODULUS_BIT_SIZE: usize = 255;
4
5/// Return the order of the group(s) defined over elliptic curves in BLS12-381. The `r` in `Fr`.
6/// TODO: change this name to modulus
7pub fn curve_order() -> BigUint {
8 BigUint::parse_bytes(
9 b"52435875175126190479447740508185965837690552500527637822603658699938581184513",
10 10,
11 )
12 .unwrap()
13}