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
platform-wallet: DashPay contact-request follow-ups after disabled-key support #6392
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.
Activity