We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent affabe8 commit 73c59e2Copy full SHA for 73c59e2
scripts/constants.py
@@ -1,21 +1,20 @@
1
from pathlib import Path
2
import os
3
from py_ecc.optimized_bls12_381 import (
4
- field_modulus as q,
+ curve_order as r,
5
G1,
6
G2,
7
add,
8
multiply,
9
pairing,
10
)
11
-import secrets
12
13
14
data_path = Path(os.path.dirname(__file__)) / "fixtures" / "data.json"
15
16
17
N_VALIDATORS = 100
18
-privkeys = [secrets.randbelow(q) for i in range(N_VALIDATORS)]
+privkeys = [pow(2, i, r) for i in range(N_VALIDATORS)]
19
20
msg = b'\xab'*32
21
domain = 5566
0 commit comments