Skip to content

Commit

Permalink
Merge pull request JoinMarket-Org#192 from AdamISZ/recoveryseedsanity…
Browse files Browse the repository at this point in the history
…check

sanity check length of recovery seed
  • Loading branch information
chris-belcher committed Aug 15, 2015
2 parents a2b34f7 + 19d4c20 commit 97c59f6
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 97c59f6

Please sign in to comment.