Skip to content

Support hardware-wallet (Ledger) signers in sponsord-core #2546

Not planned

Description

@thiras

sponsord-core takes any alloy signer since decdn/sponsord#17, but a hardware wallet doesn't work yet (raised in review on decdn/sponsord#17):

  • Issuer::sign signs the capability's EIP-712 hash with Signer::sign_hash. alloy's LedgerSigner refuses sign_hash (a Ledger won't blind-sign a hash); it signs only typed data, through sign_typed_data.
  • Sponsor::connect requires S: Clone (one copy signs capabilities, one sends top-ups), and LedgerSigner isn't Clone.

So today the docs name local keys and AWS/GCP KMS only.

Proposal

  • Typed-data signing. Sign through sign_typed_data (or sign_dynamic_typed_data) with the capability's sol struct and domain, so the device shows the capability's terms. This needs decdn to expose the Capability sol type (decdn_incentive::capability keeps to_sol private today), which is a decdn PR first.
  • No Clone bound. Hold the signer once, behind an Arc, and hand the wallet provider a thin TxSigner wrapper over that Arc.
  • Coverage: a test with a non-Clone signer that implements only typed-data signing.

Until then: local keystore, or a KMS signer.

Activity

  1. added
    kind:feature
    on Oct 3, 2026
  2. transferred this issue fromdecdn/sponsordon Oct 19, 2026
  3. added
    area:sponsord
    on Oct 19, 2026
  4. alpergundogdu commented on Nov 25, 2026

    @alpergundogdu
    Contributor

    Superseded by #2993. A hardware wallet owns the pool and calls setIssuer once; sponsord signs capabilities with a hot issuer key and never needs the Ledger.

  5. moved this from Backlog to Done in deCDNon Nov 25, 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

    area:sponsordkind:feature

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions