SomberNight
ad95f8ad56
mnemonic: add comments
2 years ago
SomberNight
7007a0c1c9
mnemonic: add type hints
2 years ago
SomberNight
e9475345e4
qml wizard: "confirm seed" screen to normalize whitespaces
...
fixes https://github.com/spesmilo/electrum/issues/8442
3 years ago
SomberNight
373db76ac9
util: kill bh2u
...
no longer useful, and the name is so confusing...
3 years ago
SomberNight
9f08293c0e
mnemonic: make sure newly generated seeds are not valid as bip39
5 years ago
Benoit Verret
f731c38293
Minor style changes
5 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.
5 years ago
SomberNight
933d8861ce
mnemonic.make_seed: de-duplicate num_bits default magic number
5 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.
6 years ago
SomberNight
004acb906d
ecc: abstract away some usage of python-ecdsa: randrange
6 years ago
SomberNight
6e3875ceab
fix qt seed dialog (follow-up af86c7e3fd)
6 years ago
Manuel Barkhau
af86c7e3fd
fix: cache wordlists
6 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.
6 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
7 years ago
SomberNight
85a7aa291e
bip32: refactor whole module. clean-up.
7 years ago
SomberNight
b39c51adf7
mv "electrum seed" stuff from bitcoin.py to mnemonic.py
7 years ago
SomberNight
5a1778b7fe
start using util.resource_path
7 years ago
SomberNight
36f64d1ad9
bitcoin/ecc: some more type annotations
7 years ago
SomberNight
1233309ebd
cli/rpc: 'restore' and 'create' commands are now available via RPC
7 years ago
SomberNight
1ef804c652
small import clean-up
7 years ago
Janus
1e715113ab
remove pbkdf2 dependency, use stdlib instead
8 years ago
Janus
097ac144d9
file reorganization with top-level module
8 years ago
Dimitris Apostolou
989c9c2b55
Fix typos
8 years ago
SomberNight
76e67daadd
changed some asserts to raise-exceptions in lib
8 years ago
SomberNight
9b7536e75c
use explicit utf-8 encoding when opening files in text mode
8 years ago
ThomasV
5e5134b76f
remove custom entropy option again (follow-up e0c38b3), because seeds can be extended with passphrase
8 years ago
SomberNight
295dc12612
avoid shorter seeds 'by luck'
8 years ago
Justin Turner Arthur
857eb4ac1d
Remove unused imports. Explicitly import a few deep imports.
8 years ago
Justin Turner Arthur
9a0aa9b478
Remove Python 2 support imports.
8 years ago
SomberNight
c65d01ea96
file i/o: use 'with' keyword
8 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
9 years ago
ThomasV
3a64ec0f2e
Initial segwit support (testnet only)
9 years ago
ThomasV
9285a7198e
Revert "remove custom entropy option; nobody uses it"
...
This reverts commit e0c38b31b4 .
9 years ago
ThomasV
e0c38b31b4
remove custom entropy option; nobody uses it
9 years ago
ThomasV
569a3b4fab
make sure seed last word is uniformly distributed. count prefix length as entropy
9 years ago
ThomasV
1e4cdab096
normalize passphrase
9 years ago
ThomasV
10d26806d9
fix #1175
10 years ago
ThomasV
e461ef4102
by default, always use English mnemonic
10 years ago
ThomasV
305843999e
Relicensing
10 years ago
ThomasV
83c68142e0
kivy wizard: add space button
10 years ago
ThomasV
656069070a
kivy wizard: use own soft keyboard
10 years ago
dabura667
678ec84267
Add Chinese Simplified wordlist
10 years ago