Skip to content

Example apps: handle ShieldedIdentityCreateInputsConsumed (code 91) in identity registration #6137

Open

Description

@romchornyi

Expected Behavior

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)
  • packages/kotlin-sdk/KotlinExampleApp/app/src/main/java/org/dashfoundation/example/services/IdentityRegistrationController.kt

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.

Activity

  1. added
    bug
    on Nov 23, 2026
  2. 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
  3. 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions