Commit Graph

2201 Commits

Author SHA1 Message Date
tomFlowee 90252a4e1a Allow HD wallet to sync while encrypted
This allows an encrypted HD wallet to sync using merkleblock p2p
messages by using the xpub instead while the private keys are
unavailable.
2022-07-11 22:11:01 +02:00
tomFlowee 9fa7b96253 Make sync status show for 'pin to pay' wallets. 2022-07-11 22:08:43 +02:00
tomFlowee d42357e511 Match operator= with copy constructor.
This solves a gcc warning.
2022-07-11 19:26:59 +02:00
tomFlowee 27af984f5b Split off encryption methods to its own file.
This avoids Wallet.cpp to become too huge and groups stuff to
make it easier to find.
2022-07-11 19:23:30 +02:00
tomFlowee 684c898939 Add warning on bad pwd. 2022-07-11 19:17:05 +02:00
tomFlowee fdf42777c4 Save HD wallet data encrypted. 2022-07-11 18:30:18 +02:00
tomFlowee 56f367a515 Fixlet in unit test. 2022-07-06 22:54:37 +02:00
tomFlowee a94d305f42 Follow rename of CKey to PrivateKey 2022-07-06 22:15:08 +02:00
tomFlowee eafc29c1cb Turn techy walletEncryption into a user friendly one 2022-07-06 22:07:43 +02:00
tomFlowee 663169530d Follow rename of CKeyID -> KeyId 2022-07-06 22:06:58 +02:00
tomFlowee 1dc32c8aa3 Make AccountTypeSelector more generic.
Now named CardTypeSelector
2022-07-01 14:29:43 +02:00
tomFlowee 35f4ccd8d7 Merge branch 'master' of banana:floweepay 2022-06-30 21:02:34 +02:00
tomFlowee 2c68c98bd2 really, nobody cares 2022-06-30 20:58:56 +02:00
tomFlowee a04142cef5 Its a markdown file 2022-06-30 19:46:29 +02:00
tomFlowee 36e06abfd7 Make typing pwd and enter submit
On the send screen we have a popup for the password, now this tries to
unlock the wallet not just when the user hits the 'Ok' button, but also
when the user hits enter.
2022-06-29 20:06:01 +02:00
tomFlowee 59b28d730e bugfixes 2022-06-29 16:04:53 +02:00
tomFlowee 2ea672fbf2 tweak color 2022-06-29 16:04:53 +02:00
tomFlowee e5e2b8bc04 Hide balance and tabs for encrypted wallet 2022-06-29 16:04:53 +02:00
tomFlowee 60dfe486fd Fix various UX issues with encrypted wallets. 2022-06-24 15:38:25 +02:00
tomFlowee de9dcca659 Honor the offline flag better. 2022-06-24 15:13:18 +02:00
tomFlowee 5720b9c2d0 Move wallet name to its own file.
This allows us to just fully encrypt the wallet.dat while still being
able to see the name of the wallet.
2022-06-24 15:02:52 +02:00
tomFlowee 47eba671e8 Make a fully encrypted wallet forget everything on close 2022-06-24 14:13:07 +02:00
tomFlowee a409b40830 Merge branch 'master' of banana:floweepay 2022-06-24 13:13:37 +02:00
tomFlowee a0116821ba Minor cleanups. 2022-06-24 00:35:20 +02:00
tomFlowee bab952b94d Make sync work together with encryption status
A fully encrypted wallet won't be tried to be synchronized (no peer
connections opened) and the moment we decrypt it we'll start the sync.
2022-06-24 00:34:08 +02:00
tomFlowee 940b1c9010 Make simple getter const. 2022-06-23 13:58:36 +02:00
tomFlowee 2dad7dd78c Follow cppcheck suggestions
Minor optimizations.
2022-06-23 13:57:44 +02:00
tomFlowee 18459769e0 Initialize variable. 2022-06-23 13:57:00 +02:00
tomFlowee 5e8c26695e Remove unneeded assert. 2022-06-23 13:56:44 +02:00
tomFlowee c324b54b1a the std version is not thread-safe. 2022-06-23 13:47:29 +02:00
tomFlowee 745d856e4c Linter bugfixes
Catch tiny (once) memory leak.
Rename variables that have the same name as an outer context.
2022-06-22 15:58:05 +02:00
tomFlowee 017e51c3ba Make a locked wallet behave better in the UI. 2022-06-20 22:52:57 +02:00
tomFlowee 589b1c212c Remove unneeded check
We now use size_t, which is unsigned and so no need to check if its
positive.
2022-06-20 22:50:11 +02:00
tomFlowee 66e1501812 Avoid confusing variable naming.
Don't use the same variable-name in smaller scope (shadowing).
2022-06-20 22:49:29 +02:00
tomFlowee 9acc505f8b Make compile 2022-06-20 18:46:27 +02:00
tomFlowee 9c0adc3d71 Refactor menu population
The menu item QML control has a big flaw, you can't hide items
for specific usecases. Visibility works, but the thing still
takes space.

It probably makes much more sense to simply not add the menu
items for cases where they make no sense, as opposed to making
them invisible.

For this purpose we switch to cheap Action objects and populate
the ConfigItem menu on opening.
2022-06-19 23:41:06 +02:00
tomFlowee d8750ca021 Add more support for encryped walles in the UI 2022-06-19 22:30:11 +02:00
tomFlowee 2be19cc9d7 Make the setEncryption method be more straight forward
have less 'smart' side-effects.
2022-06-19 14:38:34 +02:00
tomFlowee 7558fb1517 Refactor encryption, pass pwd when needed. 2022-06-19 14:29:27 +02:00
tomFlowee 9a2ea5a951 Be consistent in our usage of the encryption class 2022-05-18 20:41:38 +02:00
tomFlowee 263418cffc Add various encryption UI parts. 2022-05-18 20:25:03 +02:00
tomFlowee 5caa359a0e Improve Dialog component
Make the width be better decided and allow custom
loaded content.
2022-05-18 20:16:19 +02:00
tomFlowee 7faba9d19d Make strings translatable. 2022-05-18 17:32:23 +02:00
tomFlowee 4bf79a7ae4 Add quick-and-dirty UI for encryption details.
Also avoid trying to save an encrypted wallet from the PaymentRequest
2022-05-18 15:48:50 +02:00
tomFlowee 1facb553d8 Fix order of initialization
This makes testnet possible to use again.
2022-05-18 13:16:27 +02:00
tomFlowee 9afdad806f Add more encryption support to the QML classes.
Also allow better interaction with the wallet.
2022-05-18 12:59:01 +02:00
tomFlowee dc0ff2e4ba Load and save encrypted wallets. 2022-05-17 23:51:57 +02:00
tomFlowee 751d8f2119 Add test for saveTransaction 2022-05-17 22:49:01 +02:00
tomFlowee e120df9b71 Implement fully encrypting the wallet files.
For the 'fullyEncrypted' option we now simply fully
encrypt the entire blob of both the secrets file as well
as the wallet.dat (which transactions we own).
2022-05-17 22:26:48 +02:00
tomFlowee 071dcaeac6 Fix typo in comment. 2022-05-17 16:22:10 +02:00