Fixed BIP39 implementation
This commit is contained in:
parent
2af2b79f9d
commit
42a47e49bb
9 changed files with 60 additions and 2093 deletions
12
how-to-create-encrypted-paper-backup/validate-seed.py
Normal file
12
how-to-create-encrypted-paper-backup/validate-seed.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
from sys import exit, stdin
|
||||
from mnemonic import Mnemonic
|
||||
|
||||
mnemo = Mnemonic("english")
|
||||
|
||||
lines = stdin.readlines()
|
||||
|
||||
for line in lines:
|
||||
if not mnemo.check(line):
|
||||
exit(1)
|
||||
|
||||
exit(0)
|
Loading…
Add table
Add a link
Reference in a new issue