Skip to content

platform-wallet: DashPay contact-request follow-ups after disabled-key support #6392

Backlog

Description

@Claudius-Maginificent

TL;DR: Three DashPay contact-request follow-ups were left out of #5644: encryption uses the recipient key bytes from the client's snapshot, old requests are not compared against when a key was disabled, and a refresh error loses its SDK type.

User story

As a user of a DashPay wallet, I want contact requests to be encrypted to the key Platform holds now and judged by when keys were disabled, so a contact is never encrypted to a stale key or misjudged.

Scenario

Base flow

The wallet sends or receives DashPay contact requests after some identity keys were disabled (#5644).

Actual behavior

  • Sending checks the recipient key's index and disabled flag, but ECDH uses the key bytes from the client's snapshot (packages/rs-sdk/src/platform/dashpay/contact_request.rs).
  • Receiving does not compare a request's creation time with the time its key was disabled (packages/rs-platform-wallet/src/wallet/identity/crypto/validation.rs).
  • A refresh failure turns the SDK error into InvalidIdentityData(String) (wallet/identity/network/contact_requests.rs, loading.rs).

Expected behavior

  • ECDH uses the same key data that was checked.
  • The receive policy for requests made before a key was disabled is decided (and matched against DIP-15) and enforced.
  • Refresh errors keep their typed SDK error.

Detailed discussion

Attribution

🤖 Co-authored by Claudius the Magnificent AI Agent

Activity

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