Skip to content

Reject spent wallet inputs before payments and address saves - #9

Merged
ty-everett merged 2 commits into
masterfrom
codex/check-wallet-inputs
Oct 27, 2026
Merged

ty-everett merged 2 commits into
masterfrom
codex/check-wallet-inputs

Conversation

@ty-everett

@ty-everett ty-everett commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Wallet-selected fee inputs can already be spent even when the wallet signs successfully. This stops payments, imports, and encrypted address-record saves if any selected input is spent or its status cannot be verified. Checks run before signing and again immediately before the single explicit submission; rejected preparations are aborted, and uncertain outcomes remain blocked through native wallet action recovery.

Address records still use encrypted PushDrop/LocalKVStore. The adapter keeps preparation and signing noSend until SDK binding/template validation completes, then checks the final inputs before release. Fresh sessions recover unfinished record actions without persisting transaction UI history. No backend, address watcher, or browser storage dependency is added.

Validation: 44 SDK/fixture regression tests, lint and production build; spent wallet-added inputs before signing and after a wallet wait; one-record address/selection restoration; native unfinished-record recovery. A read-only replay of the actual failed signed import rejects its conflicted fee inputs without creating or submitting another wallet action. The original import remains unresolved and was not retried.

@ty-everett ty-everett changed the title Stop payments when the wallet selects spent inputs Reject spent wallet inputs before payments and address saves Oct 27, 2026
@ty-everett
ty-everett merged commit 92d049b into master Oct 27, 2026
1 check passed
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.

1 participant