-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
128 lines (91 loc) · 2.83 KB
/
config.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
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
"""
This file is configuration file.
"""
SEED = 'AMRWQP9BUMJALJHBXUCHOD9HFFD9LGTGEAWMJWWXSDVOF9PI9YGJAPBQLQUOMNYEQCZPGCTHGVNNAPGHA'
"""
SEED is defined by user.
It should be iota seed.
"""
ADDRESS = "BXEOYAONFPBGKEUQZDUZZZODHWJDWHEOYY9AENYF9VNLXZHXBOODCOTYXW9MGGINTEJPLK9AGOPTPODVX"
"""
ADDRESS is defined by user.
It should be iota transaction's address.
"""
subTangleTag = ""
"""
Mark subTangle's transaction.
"""
# Full Node list
fullNodeNumber = 30
"""
FullNodeNumber is the number of all full nodes.
"""
node = [""]*fullNodeNumber
node[0] = "https://tuna.iotasalad.org:14265"
node[1] = "https://potato.iotasalad.org:14265"
node[2] = "https://durian.iotasalad.org:14265"
node[3] = "https://peanut.iotasalad.org:14265"
node[4] = "https://turnip.iotasalad.org:14265"
node[5] = "https://wallet2.iota.town:443"
node[6] = "https://wallet1.iota.town:443"
node[7] = "https://node.deviceproof.org:443"
node[8] = "https://iota-fullnode.de:14267"
node[9] = "http://pnwiota.ddns.net:14700"
node[10]= "https://tangle.heuveling.net"
node[11]= "https://iota.arva.net"
node[12]= "https://node.trustingiot.com:443"
node[13]= "https://nodes.thetangle.org:443"
node[14]= "https://02.hanspetzersnode.org:14267/"
node[15]= "https://dsh.encyclopedia69.com/"
node[16]= "https://nodes.iota.cafe:443"
node[17]= "http://173.249.16.55:18765"
node[18]= "http://macway.ddns.net:14265/"
node[19]= "https://nod3.theshock.de:443"
node[20]= "https://iota-fullnode.de:14267"
node[21]= "https://n1.iotajournal.io:443"
node[22]= "https://trinity.iota-tangle.io:14265/"
node[23]= "https://dsh.encyclopedia69.com/"
node[24]= "http://159.69.179.108:14265"
node[25]= "https://node.iota-talk.de:443"
node[26]= "https://laseriota.com:14267/"
node[27]= "https://iotawallet.cloudcluster.io/"
node[28]= "http://iota.band:14265/"
node[29]= "http://iota1.heidger.eu:14265/"
# attack_init
startMessage = "TESTATINIT"
"""
startMessage is defined by user.
It is "tag" in transaction.
"""
attackType = "nonSolid"
"""
attackType is nonSolid or conflictTransaction.
Other can't work.
"""
nonSolidTransaction = "A99999999999999999999999999999999999999999999999999999999999999999999999999999999"
"""
If attackType is nonSolid , user should define non-solid transaction.
"""
conflictTransactionAddress = ""
"""
If attackType is conflictTransaction , user should define the
conflict transaction's address.
"""
conflictTransactionPrivateKey = ""
"""
If attackType is conflictTransaction , user should define the
conflict transaction's private key.
"""
conflictTransactionValue = -1000
"""
If attackType is conflictTransaction , user should define the conflict transaction's value.
"""
conflictTransactionReceivedAddress = ""
"""
If attackType is conflictTransaction , user should define the conflict transaction's received address.
"""
# attack_end
endMessage = "OKJUI"
"""
endMessage is defined by user.
"""