SomberNight
9f08293c0e
mnemonic: make sure newly generated seeds are not valid as bip39
5 years ago
Benoit Verret
f731c38293
Minor style changes
4 years ago
SomberNight
d1302d3384
mnemonic: tighten seed_type check for old "2fa" type seeds
Seeds in the set difference could already not be restored: they raised
an exception in the wizard; now these are not recognised as valid seeds
anymore (so e.g. OK button in wizard will be disabled).
Also see comments in code.
4 years ago
SomberNight
933d8861ce
mnemonic.make_seed: de-duplicate num_bits default magic number
4 years ago
SomberNight
a0b096dcb2
mnemonic: implement Wordlist class
Wordlist subclasses 'tuple' so it can be transparently used.
'in' and '.index()' are fast.
Use Wordlist in bip39_is_checksum_valid, which makes that faster.
5 years ago
SomberNight
004acb906d
ecc: abstract away some usage of python-ecdsa: randrange
5 years ago
SomberNight
6e3875ceab
fix qt seed dialog (follow-up af86c7e3fd
)
5 years ago
Manuel Barkhau
af86c7e3fd
fix: cache wordlists
5 years ago
Manuel Barkhau
b3f913340c
make Mnemonic.mnemonic_decode faster
list.index(word) is O(n)
dict[word] is O(log(n))
This makes a difference for Mnemonic.make_seed which
calls self.mnemonic_decode repeatedly.
5 years ago
SomberNight
1c75d939d9
commands: change API of "make_seed" and "create" commands
instead of "segwit" boolean, take a "seed_type" optional arg
default seed_type to "segwit"
previously these commands created legacy seeds by defalt
6 years ago
SomberNight
3385a94753
logging: basics
6 years ago
SomberNight
85a7aa291e
bip32: refactor whole module. clean-up.
6 years ago
SomberNight
b39c51adf7
mv "electrum seed" stuff from bitcoin.py to mnemonic.py
6 years ago
SomberNight
5a1778b7fe
start using util.resource_path
6 years ago
SomberNight
36f64d1ad9
bitcoin/ecc: some more type annotations
6 years ago
SomberNight
1233309ebd
cli/rpc: 'restore' and 'create' commands are now available via RPC
6 years ago
SomberNight
1ef804c652
small import clean-up
6 years ago
Janus
1e715113ab
remove pbkdf2 dependency, use stdlib instead
7 years ago
Janus
097ac144d9
file reorganization with top-level module
7 years ago
Dimitris Apostolou
989c9c2b55
Fix typos
7 years ago
SomberNight
76e67daadd
changed some asserts to raise-exceptions in lib
7 years ago
SomberNight
9b7536e75c
use explicit utf-8 encoding when opening files in text mode
7 years ago
ThomasV
5e5134b76f
remove custom entropy option again (follow-up e0c38b3
), because seeds can be extended with passphrase
7 years ago
SomberNight
295dc12612
avoid shorter seeds 'by luck'
7 years ago
Justin Turner Arthur
857eb4ac1d
Remove unused imports. Explicitly import a few deep imports.
7 years ago
Justin Turner Arthur
9a0aa9b478
Remove Python 2 support imports.
7 years ago
SomberNight
c65d01ea96
file i/o: use 'with' keyword
7 years ago
ThomasV
216e9403be
cleanup six (no python2 support)
8 years ago
ThomasV
7b14516cc0
fix unicode in make_seed and getseed
8 years ago
ThomasV
15642ec8de
python3: remove calls to unicode function
8 years ago
fr3aker
e562b0b565
python3: fix bad type in make_seed
8 years ago
Dmitry Sorokin
362ca96f38
x509 fixes and plugins
8 years ago
Dmitry Sorokin
5be78950ca
py3
8 years ago
Kacper Żuk
c6e09a6038
Provide warnings about invalid BIP39 checksum in seed dialog
8 years ago
ThomasV
e30a179c97
fix make_seed arguments
8 years ago
ThomasV
3a64ec0f2e
Initial segwit support (testnet only)
8 years ago
ThomasV
9285a7198e
Revert "remove custom entropy option; nobody uses it"
This reverts commit e0c38b31b4
.
8 years ago
ThomasV
e0c38b31b4
remove custom entropy option; nobody uses it
8 years ago
ThomasV
569a3b4fab
make sure seed last word is uniformly distributed. count prefix length as entropy
8 years ago
ThomasV
1e4cdab096
normalize passphrase
9 years ago
ThomasV
10d26806d9
fix #1175
9 years ago
ThomasV
e461ef4102
by default, always use English mnemonic
9 years ago
ThomasV
305843999e
Relicensing
9 years ago
ThomasV
83c68142e0
kivy wizard: add space button
9 years ago
ThomasV
656069070a
kivy wizard: use own soft keyboard
9 years ago
dabura667
678ec84267
Add Chinese Simplified wordlist
10 years ago
ThomasV
b5ac7f2a7c
simplify setup.py using package_data
10 years ago
ThomasV
2b42f054a9
rename SEED_PREFIX constant
10 years ago
ThomasV
da968b60e4
drop support for multiple accounts (bip44) in standard wallets
10 years ago
Michael Wozniak
27a663091b
Add default language for mnemonic
Add en as default language for mnemonic
11 years ago