1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
use snarkvm_fields::{Fp256, Fp256Parameters, FpParameters};
use snarkvm_utilities::biginteger::BigInteger256 as BigInteger;
pub type Fr = Fp256<FrParameters>;
pub struct FrParameters;
impl Fp256Parameters for FrParameters {}
impl FpParameters for FrParameters {
type BigInteger = BigInteger;
const CAPACITY: u32 = Self::MODULUS_BITS - 1;
const GENERATOR: BigInteger = BigInteger([
11289572479685143826u64,
11383637369941080925u64,
2288212753973340071u64,
82014976407880291u64,
]);
const INV: u64 = 9659935179256617473u64;
const MODULUS: BigInteger = BigInteger([
13356249993388743167u64,
5950279507993463550u64,
10965441865914903552u64,
336320092672043349u64,
]);
const MODULUS_BITS: u32 = 251;
const MODULUS_MINUS_ONE_DIV_TWO: BigInteger = BigInteger([
6678124996694371583u64,
2975139753996731775u64,
14706092969812227584u64,
168160046336021674u64,
]);
const R: BigInteger = BigInteger([
16632263305389933622u64,
10726299895124897348u64,
16608693673010411502u64,
285459069419210737u64,
]);
const R2: BigInteger = BigInteger([
3987543627614508126u64,
17742427666091596403u64,
14557327917022607905u64,
322810149704226881u64,
]);
const REPR_SHAVE_BITS: u32 = 5;
const ROOT_OF_UNITY: BigInteger = BigInteger([
15170730761708361161u64,
13670723686578117817u64,
12803492266614043665u64,
50861023252832611u64,
]);
const T: BigInteger = BigInteger([0x0, 0x0, 0x0, 0x0]);
const TWO_ADICITY: u32 = 1;
const T_MINUS_ONE_DIV_TWO: BigInteger = BigInteger([0x0, 0x0, 0x0, 0x0]);
}