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
Example apps: handle ShieldedIdentityCreateInputsConsumed (code 91) in identity registration #6137
When identity registration from the shielded pool fails with ErrorShieldedIdentityCreateInputsConsumed (FFI code 91, Swift PlatformWalletError.shieldedIdentityCreateInputsConsumed, Kotlin PlatformWallet.ShieldedIdentityCreateInputsConsumed), the example apps show a terminal state with no retry at that slot, and tell the user the funds were spent.
Current Behavior
Both registration controllers handle the unconfirmed case and send everything else to a generic catch that sets a retryable failed phase:
packages/swift-sdk/SwiftExampleApp/SwiftExampleApp/Services/IdentityRegistrationController.swift (the catch after ShieldedIdentityCreateUnconfirmedError)
A retry derives the same keys at the same slot. A create that failed Platform's key-state check (the paid failure path) fails again and pays the penalty again.
Possible Solution
A dedicated terminal phase for code 91 in both controllers and their screens, without the retry action. Until #6136 lands, a scan can still mark the create's activity row Confirmed from the outputs of the paid failure path, so the screens must not show that row as a successful registration after code 91. Code 91 does not return an identity id, so the phase cannot reuse the unconfirmed one as is.
Context
Added in #5853. Code 91 makes no claim about what spent the notes: Platform's paid failure path (remainder credited to the fallback address) or another transition with the same keys.
changed the title [-]Example apps: handle ShieldedIdentityCreateInputsConsumed (code 77) in identity registration[/-][+]Example apps: handle ShieldedIdentityCreateInputsConsumed (code 81) in identity registration[/+]on Nov 23, 2026
changed the title [-]Example apps: handle ShieldedIdentityCreateInputsConsumed (code 81) in identity registration[/-][+]Example apps: handle ShieldedIdentityCreateInputsConsumed (code 91) in identity registration[/+]on Dec 3, 2026
Activity
[-]Example apps: handle ShieldedIdentityCreateInputsConsumed (code 77) in identity registration[/-][+]Example apps: handle ShieldedIdentityCreateInputsConsumed (code 81) in identity registration[/+][-]Example apps: handle ShieldedIdentityCreateInputsConsumed (code 81) in identity registration[/-][+]Example apps: handle ShieldedIdentityCreateInputsConsumed (code 91) in identity registration[/+]