File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,10 @@ if len(sys.argv) < 3:
86
86
print "Usage: %s <token file> <BIP38 encoded key>\n " % sys .argv [0 ]
87
87
sys .exit (0 )
88
88
89
+ hexkey = "0" + b58hex (sys .argv [2 ])
90
+ if hexkey [0 :2 ] != '0142' :
91
+ sys .exit ('BIP38 Third-party key (EC Multiply flag) not supported.' )
92
+
89
93
with open (sys .argv [1 ]) as f :
90
94
tokens = f .read ()
91
95
tokens = tokens .split ()
Original file line number Diff line number Diff line change @@ -107,6 +107,10 @@ if __name__ == '__main__':
107
107
print "Default depth is 6. ie. scan up to 6 token combinations."
108
108
print "Usage: %s <token file> <BIP38 encoded key> [depth]\n " % sys .argv [0 ]
109
109
sys .exit (0 )
110
+
111
+ hexkey = "0" + b58hex (sys .argv [2 ])
112
+ if hexkey [0 :2 ] != '0142' :
113
+ sys .exit ('BIP38 Third-party key (EC Multiply flag) not supported.' )
110
114
111
115
with open (sys .argv [1 ]) as f :
112
116
tokens = f .read ()
You can’t perform that action at this time.
0 commit comments