Sander van Grieken
0a2a22b822
qt: use selected_key instead of selected_item[0] for ChoiceWidgets
2 years ago
Sander van Grieken
3d9996ab8b
trustedcoin: disable OTP entry after successful validation
2 years ago
Sander van Grieken
ec81f00896
trustedcoin: cannot reset OTP when seed is not available (online wallet creation continuation)
2 years ago
SomberNight
66b8ec1833
trustedcoin: rm some dead code
...
used by old qt wizard
2 years ago
Sander van Grieken
4c8287358a
qt, qml: remove email entry from 2FA wallet ToS pages
2 years ago
ThomasV
56e80c20d7
wallet_db upgrade: do not use '/' in StoredDict keys
2 years ago
Sander van Grieken
0aebc1a31e
qt+plugins: cleanup. remove all old wizard code
2 years ago
Sander van Grieken
1c7da01dae
rename qt_common to common_qt
2 years ago
Sander van Grieken
314e3f958d
qt: new wizard 2fa offline setup
2 years ago
Sander van Grieken
eb8212ab77
qt: trustedcoin plugin helper scoping refactor
2 years ago
Sander van Grieken
65fee652c4
trustedcoin: ChoicesLayout -> ChoiceWidget
2 years ago
Sander van Grieken
7a2633b2de
flake happifier
2 years ago
Sander van Grieken
fd28c66670
qt: 2fa implement OTP check
2 years ago
Sander van Grieken
571d16314f
qt: introduce electrum/gui/qt_common, implement remaining trustedcoin views,
...
unify most qml and qt wizard code for trustedcoin,
separate non-GUI trustedcoin wizard definition to trustedcoin.py
2 years ago
Sander van Grieken
15773086e5
qt: initial trustedcoin wizard pages
2 years ago
SomberNight
24980feab7
config: introduce ConfigVars
...
A new config API is introduced, and ~all of the codebase is adapted to it.
The old API is kept but mainly only for dynamic usage where its extra flexibility is needed.
Using examples, the old config API looked this:
```
>>> config.get("request_expiry", 86400)
604800
>>> config.set_key("request_expiry", 86400)
>>>
```
The new config API instead:
```
>>> config.WALLET_PAYREQ_EXPIRY_SECONDS
604800
>>> config.WALLET_PAYREQ_EXPIRY_SECONDS = 86400
>>>
```
The old API operated on arbitrary string keys, the new one uses
a static ~enum-like list of variables.
With the new API:
- there is a single centralised list of config variables, as opposed to
these being scattered all over
- no more duplication of default values (in the getters)
- there is now some (minimal for now) type-validation/conversion for
the config values
closes https://github.com/spesmilo/electrum/pull/5640
closes https://github.com/spesmilo/electrum/pull/5649
Note: there is yet a third API added here, for certain niche/abstract use-cases,
where we need a reference to the config variable itself.
It should only be used when needed:
```
>>> var = config.cv.WALLET_PAYREQ_EXPIRY_SECONDS
>>> var
<ConfigVarWithConfig key='request_expiry'>
>>> var.get()
604800
>>> var.set(3600)
>>> var.get_default_value()
86400
>>> var.is_set()
True
>>> var.is_modifiable()
True
```
3 years ago
SomberNight
03ab33f4b2
SimpleConfig: change API of set_key(): "save" is now kwarg-only
3 years ago
ThomasV
f770905551
follow-up d56162c588
3 years ago
SomberNight
4b8790c919
qt 2fa: show different status-bar icon for "2fa disabled" wallet
...
related: https://github.com/spesmilo/electrum/issues/8018
3 years ago
SomberNight
98feff07ad
threading.Thread: fix some DeprecationWarnings
...
"DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead"
4 years ago
SomberNight
1851ec962f
trustedcoin: fix two-step wallet creation (offline->online)
...
got broken in c46fbf08a5
5 years ago
SomberNight
95b08e9961
plugins: remove 'on_new_window' hook
5 years ago
SomberNight
07f5d6b745
keystore: 'get_tx_derivations' no longer public
6 years ago
ThomasV
e1ce3aace7
Separate db from storage
...
- storage is content-agnostic
- db and storage are passed to wallet contructor
6 years ago
ThomasV
16e293c289
follow-up cefa4762ba
6 years ago
SomberNight
f60f690ca9
change many str(e) to repr(e) as some exceptions were cryptic
...
it's often valuable to see the type of the exception
(especially as for some exceptions str(e) == '')
7 years ago
SomberNight
003e6c3e79
fix 2fa wallet creation via qt gui
...
closes #5334
7 years ago
SomberNight
3385a94753
logging: basics
7 years ago
SomberNight
1cfac928f9
trustedcoin: longer timeout for server signing
...
fixes #5221
7 years ago
SomberNight
a62bf2a53a
trustedcoin: better UX in Qt when cannot connect to TC server
...
closes #5184
7 years ago
ThomasV
d5790ea109
wizard: do not use on storage object during wallet creation
7 years ago
SomberNight
026448837f
no more "import *"
...
fixes #5101
fixes #5105
7 years ago
SomberNight
9013f6d59e
wizard: make 'stack' private
7 years ago
SomberNight
16bac5fd73
rm qt icons file
...
so we don't need pyrcc5, which is not deterministic,
and so we don't need the submodule for the icons
based on electrumsv/electrumsv@bf8802c2eaf0bf75565b5423a95bcb85ec7eb781
7 years ago
SomberNight
7b90d69443
trustedcoin: p2wpkh billing addresses
7 years ago
Janus
097ac144d9
file reorganization with top-level module
8 years ago
ThomasV
8d5e666d30
support TrustedCoin plugin in the kivy GUI
8 years ago
SomberNight
ceae43afe5
trustedcoin: sign first, then prompt for OTP
8 years ago
SomberNight
d0352379d7
fix #4071
8 years ago
Dimitris Apostolou
989c9c2b55
Fix typos
8 years ago
SomberNight
ffdc36285b
use string.format instead of old style (%) formatting
8 years ago
SomberNight
3bcfb8273a
Catch exception when retrieving 2FA TOS. Only allow user to continue if TOS was received.
8 years ago
ThomasV
5e8791e5a4
trustedcoin: add message about how to request new code
8 years ago
ThomasV
ddc989c672
fix #3062
8 years ago
SomberNight
d178c20b1f
grammar fix (trustedcoin)
8 years ago
SomberNight
4ac162f18b
migration to PyQt5. initial commit.
8 years ago
ThomasV
c3388d9677
misc python3 updates:
...
- use jsonrpclib-pelix
- update the kivy gui
- update plugins
8 years ago
ThomasV
777a3aa8bf
Fixes for TrustedCoin plugin:
...
- reset billing_info after broadcast
- when bumping tx fee, do not use Trustedcoin output
9 years ago
ThomasV
6ca52153c3
Trustedcoin: prepaid-only billing
9 years ago
ThomasV
e43abb5c96
fix trustedcoin wizard. fixes #2276
9 years ago