Skip to content

Conversation

@ecdsa
Copy link
Member

@ecdsa ecdsa commented Apr 19, 2025

This makes it possible to use txbatcher without unlocking the wallet.

  • if a password is required, send a signal to the GUI, unless the wallet is unlocked.
  • if a transaction is verified, cancel the password future; the next iteration might not require a password anymore (for example, after a commitment tx has been mined we do not need to sweep anchor outputs anymore)

@ecdsa ecdsa force-pushed the txbatcher_without_password_in_memory branch 2 times, most recently from 6d8a9e4 to 9585183 Compare April 22, 2025 12:26
@ecdsa ecdsa added this to the 4.6.0 milestone Apr 22, 2025
@ecdsa ecdsa force-pushed the txbatcher_without_password_in_memory branch from 9585183 to dcadb21 Compare April 22, 2025 17:09
@ecdsa ecdsa marked this pull request as ready for review April 22, 2025 17:13
@ecdsa ecdsa force-pushed the txbatcher_without_password_in_memory branch from 4286797 to eaa0f14 Compare April 23, 2025 07:19
else:
future.cancel()
self.take_action_button.clicked.connect(on_clicked)
self.take_action_button.show()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Showing a notification could improve users response to the prompt:
self.notify(_('Password required to') + f': {reason}')

Screenshot_20250423_133931-1

@ecdsa ecdsa marked this pull request as draft April 23, 2025 12:54
@ecdsa ecdsa force-pushed the txbatcher_without_password_in_memory branch 3 times, most recently from 3d81aa1 to f616cb9 Compare April 25, 2025 15:09
@ecdsa ecdsa force-pushed the txbatcher_without_password_in_memory branch 4 times, most recently from 02ff419 to 166f3b1 Compare May 4, 2025 09:50
@ecdsa ecdsa marked this pull request as ready for review May 4, 2025 09:50
@ecdsa ecdsa force-pushed the txbatcher_without_password_in_memory branch 2 times, most recently from 6746a1c to e51f6c9 Compare May 5, 2025 10:01
@ecdsa ecdsa force-pushed the txbatcher_without_password_in_memory branch 3 times, most recently from 32e4311 to b981f41 Compare May 6, 2025 10:38
ecdsa added 2 commits May 6, 2025 13:04
 - do not require full encryption
 - do not store password on startup
 - add lock/unlock functions to qt GUI
 - if password is needed, await future and request it from GUI
 - run asyncio task for each TxBatch, so that batches can
   request the password concurrently
@ecdsa ecdsa force-pushed the txbatcher_without_password_in_memory branch from b981f41 to 7bcc7fb Compare May 6, 2025 11:05
@ecdsa ecdsa merged commit a4d88e3 into master May 6, 2025
0 of 13 checks passed
@ecdsa ecdsa deleted the txbatcher_without_password_in_memory branch May 6, 2025 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants