-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
36 lines (31 loc) · 1.12 KB
/
Copy pathmain.py
File metadata and controls
36 lines (31 loc) · 1.12 KB
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
# Standard library imports
import argparse
# Custom library imports
from src.evaluate import evaluate
def parseArgs():
"""
Parses received arguments using argparse.
:return:
"""
parser = argparse.ArgumentParser('Test and evaluate Ring Confidential Transactions')
parser.add_argument('-rs', '--ringsizes', required=True, nargs='*', type=int, help="Define the size of the ring.")
parser.add_argument('-c', '--curves', required=False, nargs='*', help="Elliptic curve to employ.")
parser.add_argument('-m', '--message', required=False, help="Message to sign.")
parser.add_argument('-o', '--output', required=False, help="Destination file to save the output graphics.")
return parser.parse_args()
"""
Reads and parses the arguments.
Calls the evaluation function.
"""
if __name__ == '__main__':
args = parseArgs()
curves = ['secp192r1']
message = 'I voted for Kodos'
output = 'comparative'
if args.curves is None:
args.curves = curves
if args.message is None:
args.message = message
if args.output is None:
args.output = output
evaluate(args)