mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-09 08:04:45 +00:00
Adds two user-facing teardown options to the Cashu wallet settings: - "Stop receiving nutzaps": replaces kind:10019 with an empty event (the durable signal, honored by every relay since it's a replaceable-event replacement) and then NIP-09 deletes it (best-effort, since deletions are optional on Nostr). The wallet and balance are untouched. - "Delete wallet": withdraws the nutzap advertisement as above, then NIP-09 deletes the kind:17375 wallet definition. Held kind:7375 proofs are not deleted (the ecash still exists at the mint), with a UI warning that any remaining balance / unredeemed nutzaps may become unrecoverable. The on-disk backups of kind:17375 / kind:10019 are cleared when those events are deleted, so a relaunch doesn't resurrect a deleted wallet from settings. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SXRAunSJS2dBx7B79qTMew