-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprepare.py
35 lines (24 loc) · 849 Bytes
/
prepare.py
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
from colors import *
from app.prepare import *
"""
Preparation step for the election.
"""
print(color("Preparation process is started", fg="cyan"))
print(color("*", fg="gray") * 100)
print(color("Voter keys generation:", fg="yellow"))
print(color("-", fg="gray") * 100)
voter_keys.generate()
print(color("*", fg="gray") * 100)
print(color("Miners keys generation", fg="yellow"))
print(color("-", fg="gray") * 100)
miner_keys.generate()
print(color("*", fg="gray") * 100)
print(color("VCMs (vote casting machine) keys generation", fg="yellow"))
print(color("-", fg="gray") * 100)
vcm_keys.generate()
print(color("*", fg="gray") * 100)
print(color("Genesis block generation", fg="yellow"))
print(color("-", fg="gray") * 100)
genesis_block.generate()
print(color("*", fg="gray") * 100)
print(color("Preparation process is done", fg="cyan"))