Skip to content

kotlin-sdk: Signing failures surface as Generic errors — no typed pre-broadcast signal #4052

Closed

Description

@bfoss765

Dashpay.sendContactRequest failed with
Generic: SDK error: Protocol error: Generic Error: no private key stored for <pubkeyHex>.
Signing happens strictly pre-submission, so integrators need a typed error (e.g.
SigningFailed) to safely classify "definitively not broadcast" for fallback/retry logic.
Currently message-matching "no private key stored". Live-verified.

cc @QuantumExplorer for review.

Context: found during the Android wallet dashj→Kotlin-SDK migration (dashpay/dash-wallet#1507); live-verified items were reproduced on testnet (Galaxy S22).

🤖 Filed with Claude Code

Activity

  1. added a commit that references this issue on Jul 16, 2026
    af5f25a
  2. HashEngineering commented on Nov 9, 2026

    @HashEngineering
    Collaborator

    Fixed by #4183 and #4321. A missing signing key is now the typed native error ErrorSigningKeyUnavailable (31), mapped to DashSdkError.PlatformWallet.SigningKeyUnavailable, so callers get a pre-broadcast signal instead of Generic. Closing.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions