Skip to content

used balance should be shown on overview page #769

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
achow101 opened this issue Oct 15, 2023 · 3 comments
Open

used balance should be shown on overview page #769

achow101 opened this issue Oct 15, 2023 · 3 comments

Comments

@achow101
Copy link
Member

Please describe the feature you'd like to see added.

A wallet with the avoid_reuse flag has an additional balances field named used. This is available through getbalances. It should also be shown on the overview page with the other balances.

Is your feature related to a problem, if so please describe it.

No response

Describe the solution you'd like

No response

Describe any alternatives you've considered

No response

Please leave any additional context

No response

@BrandonOdiwuor
Copy link
Contributor

BrandonOdiwuor commented Nov 3, 2023

Created two PRs on this issue:

@hebasto
Copy link
Member

hebasto commented May 12, 2025

Cross-posting @luke-jr's comment from #775:

What is the use case here? (And the avoid_reuse flag in general...)

@hebasto hebasto added the Wallet label May 12, 2025
@katesalazar
Copy link
Contributor

katesalazar commented May 12, 2025

@luke-jr I don't remember which post to quote or link, the idea was:

Algorithm to deal with forced address reuse attack utxos:

  • If the unlock script has not ever been revealed:
    • All attack utxos are to be spent together with the non-attack utxos in the spending event.
  • If the unlock script has already been revelead:
    • All attack utxos are to be ignored forever.

For this algorithm makes sense to have a configuration in order to allow the wallet operator to ignore reused addresses.

I guess one could alternatively have a companion script for checking reused addresses and burn the attacking utxos or spend them in a controlled way, but if the node doesn't ignore them, there'd be always a minimum risk that the funds are used before any observing operator or script gets to spend or burn them.

Hope that helped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants