remove an empty wallet #86

Closed
opened 2026-10-12 09:27:29 +00:00 by grenade · 0 comments
Owner

Part of #4. Operator request, 2026-10-12.

A wallet that holds nothing can be removed from the wallet: its file is deleted, it leaves the session, and its account numbers and names leave the settings.

Empty is decided by Rust, never assumed:

  • every account of the wallet holds zero (free plus reserved) on every mainnet chain, read live; a chain that cannot be read refuses the removal;
  • no reversible transfer is pending to or from any of its accounts;
  • for a phrase wallet, its wormhole address has no unspent leaf, and the zk-tree scan is current (so no leaf is unseen);
  • it is not the wallet whose key controls the intents account while that account holds any token; if the account is empty, the record goes with the wallet, and the next creation makes a new account.

UI: a Remove control on each open wallet on the accounts page, with an inline confirmation naming what happens. A refusal shows Rust's reason. No browser dialog.

The phrase is a phrase wallet's backup; a raw-key wallet that holds nothing has nothing to back up, so the file is deleted rather than kept.

Part of #4. Operator request, 2026-10-12. A wallet that holds nothing can be removed from the wallet: its file is deleted, it leaves the session, and its account numbers and names leave the settings. **Empty is decided by Rust, never assumed:** - every account of the wallet holds zero (free plus reserved) on every mainnet chain, read live; a chain that cannot be read refuses the removal; - no reversible transfer is pending to or from any of its accounts; - for a phrase wallet, its wormhole address has no unspent leaf, and the zk-tree scan is current (so no leaf is unseen); - it is not the wallet whose key controls the intents account while that account holds any token; if the account is empty, the record goes with the wallet, and the next creation makes a new account. **UI:** a Remove control on each open wallet on the accounts page, with an inline confirmation naming what happens. A refusal shows Rust's reason. No browser dialog. The phrase is a phrase wallet's backup; a raw-key wallet that holds nothing has nothing to back up, so the file is deleted rather than kept.
grenade added the child label 2026-10-12 09:28:19 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: blackbeard/wallet#86