jeffro256 dbc8402da6
wallet: fix wallet_keys_unlocker
Fix four issues with wallet_keys_unlocker:
1. It won't decrypt if there are unlockers open simulataneously on multiple `wallet2` instances
2. It won't decrypt if the first unlocker was disabled (i.e. `locked=false`), even with a second non-disabled unlocker
3. If a destructor of an earlier unlocker is triggered before the destructor of a later unlocker, it will re-encrypt too early, while the second unlocker is still in scope
4. Calling the 3-parameter constructor with `locked=true` after an unlocker already exists will "double-encrypt"  the spend key after its destructor since the local variable is `locked=false` and the field member is `locked=true`

Also, replace `wallet2::decrypt_account_for_multisig` with `wallet_keys_unlocker`.
2025-09-04 15:43:38 -05:00
..
2024-05-21 16:29:33 +00:00
2024-05-21 16:29:33 +00:00
2024-05-21 16:29:33 +00:00
2024-05-21 16:29:33 +00:00
2024-05-21 16:29:33 +00:00
2024-05-21 16:29:33 +00:00
2024-05-21 16:29:33 +00:00
2024-05-21 16:29:33 +00:00
2024-05-21 16:29:33 +00:00
2024-05-21 16:29:33 +00:00
2024-05-21 16:29:33 +00:00
2024-05-21 16:29:33 +00:00
2024-05-21 16:29:33 +00:00
2025-02-14 07:33:45 +00:00
2024-05-21 16:29:33 +00:00
2024-05-21 16:29:33 +00:00
2024-05-21 16:29:33 +00:00
2024-12-23 10:41:09 -05:00
2024-05-21 16:29:33 +00:00
2024-07-16 19:01:09 -04:00
2024-05-21 16:29:33 +00:00
2024-05-21 16:29:33 +00:00
2024-11-22 12:24:22 +01:00
2025-01-24 23:11:47 -08:00
2024-05-21 16:29:33 +00:00
2024-05-21 16:29:33 +00:00
2024-05-21 16:29:33 +00:00
2024-07-16 19:01:09 -04:00
2024-05-21 16:29:33 +00:00
2024-05-21 16:29:33 +00:00
2024-05-21 16:29:33 +00:00
2024-05-21 16:29:33 +00:00
2024-05-21 16:29:33 +00:00
2025-03-10 16:16:18 +00:00
2024-05-21 16:29:33 +00:00
2024-07-16 19:01:09 -04:00
2024-05-21 16:29:33 +00:00
2024-05-21 16:29:33 +00:00
2024-05-21 16:29:33 +00:00
2024-05-21 16:29:33 +00:00
2024-05-21 16:29:33 +00:00
2024-05-21 16:29:33 +00:00
2024-05-21 16:29:33 +00:00
2024-05-21 16:29:33 +00:00
2024-05-21 16:29:33 +00:00
2024-05-21 16:29:33 +00:00
2024-05-21 16:29:33 +00:00
2024-05-21 16:29:33 +00:00
2024-05-21 16:29:33 +00:00
2024-05-21 16:29:33 +00:00
2024-05-21 16:29:33 +00:00
2024-05-21 16:29:33 +00:00
2024-05-21 16:29:33 +00:00
2024-05-21 16:29:33 +00:00
2024-05-21 16:29:33 +00:00
2024-05-21 16:29:33 +00:00
2024-05-21 16:29:33 +00:00
2024-05-21 16:29:33 +00:00
2024-05-21 16:29:33 +00:00
2024-07-16 18:42:49 -04:00
2024-05-21 16:29:33 +00:00