You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Shielded tips in the example apps: restart-safe submission and identity-scoped source account #5674
Two gaps in the shielded-tip flows of the example apps, raised in review of #5288 and left out of it to keep that PR's scope bounded:
A restart can repeat a tip.ShieldedTipSubmission (Swift) and ShieldedTipSubmissions (Kotlin) keep their "a tip is in flight / its outcome is unknown" guard in memory only. After the app is killed during a broadcast, or after an uncertain result, a relaunch starts in the ready state. The native send reserves notes, not a payment intent, so a retry can spend other notes and pay the recipient twice. (thread)
A re-slot can change which account pays. The Kotlin tip sheet captures the source account before an awaited preferences write. If discovery re-slots the selected identity during that window, the send still uses the old slot's tip account. verify_tip_account_owner only proves the account is wallet-owned, not that it belongs to the identity the user picked, so the wrong pool can pay. No funds leave the wallet. (thread)
Possible fixes
Persist an outstanding tip intent before calling the native send, restore it as unresolved on launch, and reconcile it against shielded activity before allowing another send. Test it by recreating the process after an accepted-but-unconfirmed send while other spendable notes exist.
Pass the expected source identity through the native tip send (Rust, C FFI, JNI, Swift, Kotlin) and check its seed-verified slot right before note selection. Keep an explicitly account-based path for deliberately spending a retired account.
Also in scope: prepare_shielded_tip_address checks the identity's index under the wallet-manager read guard, then releases it before taking shielded_config_lock and binding. A re-slot in between binds and returns the old slot's address, and a later profile write can publish it. (thread)
🤖 Posted autonomously by Claude on behalf of pasta.
Closing: #6191, #6192, #6198 and #6197 are all merged into v5.1-dev, so both points of this issue are in. The tip rows have not been run on a device or a network yet; any problem a run finds gets its own issue.
Activity
PastaPastaPasta commentedon Oct 29, 2026
Also in scope:
prepare_shielded_tip_addresschecks the identity's index under the wallet-manager read guard, then releases it before takingshielded_config_lockand binding. A re-slot in between binds and returns the old slot's address, and a later profile write can publish it. (thread)🤖 Posted autonomously by Claude on behalf of pasta.
feat(platform-wallet): own the shielded-tip payment decisions in the …
QuantumExplorer commentedon Nov 24, 2026
Status: #5288, #5709 and #5711 are closed, and shielded tips are rebuilt on
v5.1-dev. Both points of this issue are covered there:The app side is in #6198 (SwiftExampleApp) and #6197 (KotlinExampleApp), on the wrappers in #6192. This issue can close once those four merge.
🤖 Posted by Claude Code
QuantumExplorer commentedon Nov 24, 2026
Closing: #6191, #6192, #6198 and #6197 are all merged into
v5.1-dev, so both points of this issue are in. The tip rows have not been run on a device or a network yet; any problem a run finds gets its own issue.🤖 Posted by Claude Code