Skip to content

Commit

Permalink
sanity check length of recovery seed
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamISZ committed Aug 15, 2015
1 parent a2b34f7 commit 19d4c20
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion wallet-tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@
words) + '\n'
elif method == 'recover':
words = raw_input('Input 12 word recovery seed: ')
words = words.split(' ')
words = words.split() #default for split is 1 or more whitespace chars
if len(words) != 12:
print 'ERROR. Recovery seed phrase must be exactly 12 words.'
sys.exit(0)
seed = old_mnemonic.mn_decode(words)
print seed
password = getpass.getpass('Enter wallet encryption passphrase: ')
Expand Down

0 comments on commit 19d4c20

Please sign in to comment.