<p></p>
<p>There are a couple of open PRs requesting wallet password prompts to be put in for Burn BSQ, Asset fee listing, Bonded Reputation, Unlock Bond, Make Proposal, Vote, and View Private Keys.  There is already a wallet password prompt at app startup, and when sending from BTC & BSQ wallets.  A previous <a href="https://github.com/bisq-network/bisq/pull/4780" data-hovercard-type="pull_request" data-hovercard-url="/bisq-network/bisq/pull/4780/hovercard">PR</a> was cited as an example of how to do it.  But actually a more consistent way to unlock the wallet would be better.</p>
<p>The model used in other wallets like <code>monero-wallet-cli</code> and also Unix <code>sudo</code> is, upon a privileged action, to authenticate and keep that authentication for a certain period of time, e.g. 1 minute.  That way if you are doing repeated wallet actions you don't have to enter the password every time.  The wallet automatically locks itself after a minute of inactivity.</p>
<p>The other advantage is that you intercept the privilege escalation at the point it is used rather than spreading the same code all throughout the GUI.  This makes code cleaner, more robust, and devs don't have to remember to code a password prompt every time a new wallet feature is added (like the one recently added to the Multisig Payout Tool).</p>
<p>We already have some form of unlock and lock on timeout implemented in <code>CoreWalletsService.java</code>.  Perhaps this can be utilized.  I just need to figure out the details, and wanted to communicate that I'm working on it as an overall solution to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="800907253" data-permission-text="Title is private" data-url="https://github.com/bisq-network/bisq/issues/5152" data-hovercard-type="issue" data-hovercard-url="/bisq-network/bisq/issues/5152/hovercard" href="https://github.com/bisq-network/bisq/issues/5152">#5152</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="823522692" data-permission-text="Title is private" data-url="https://github.com/bisq-network/bisq/issues/5276" data-hovercard-type="issue" data-hovercard-url="/bisq-network/bisq/issues/5276/hovercard" href="https://github.com/bisq-network/bisq/issues/5276">#5276</a></p>
<p>cc: <a class="team-mention js-team-mention" data-error-text="Failed to load team members" data-id="3638643" data-permission-text="Team members are private" data-url="/orgs/bisq-network/teams/bisq-devs/members" data-hovercard-type="team" data-hovercard-url="/orgs/bisq-network/teams/bisq-devs/hovercard" href="https://github.com/orgs/bisq-network/teams/bisq-devs">@bisq-network/bisq-devs</a> <a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/pazza83/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pazza83">@pazza83</a></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/bisq-network/bisq/discussions/5398">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJFFTNRMIMI2C6YTIOADHODTHO53VANCNFSM42P3C4WQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AJFFTNSVTKJKOLYLW4XARXLTHO53VA5CNFSM42P3C4W2YY3PNVWWK3TUL52HS4DFVJCGS43DOVZXG2LPN2VGG33NNVSW45C7NFSM4ABSPZCQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/bisq-network/bisq/discussions/5398",
"url": "https://github.com/bisq-network/bisq/discussions/5398",
"name": "View Discussion"
},
"description": "View this Discussion on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>