Skip to content

platform-wallet: check that private scan keys derive the registered keys, and resolve application key paths #6073

Open

Description

@QuantumExplorer

Basic explanation

Both readers of private document stores derive each scanning key (an ECDSA_SECP256K1 ENCRYPTION or DECRYPTION key) at the identity's ordinary authentication slot, m/9'/coin'/5'/0'/0'/identity_index'/key_id'. A key registered from another path derives some other key there, so entries sealed to it never open. The main example is a DashPay Connect application key, DIP-13 sub-feature 7, derived by contract, purpose and rotation.

What to decide

  1. DashPay coverage: whether DashPay's private sync should check its keys the same way, and leave a read incomplete, or refuse, while an identity holds a key whose bounds allow DashPay and whose path it cannot resolve.
  2. Resolving application key paths: for a key bound to a contract, try that contract's application paths over a bounded set of rotations, then the pre-rotation layout (ConnectKey::AppEncryption, ConnectKey::AppEncryptionLegacy). Then both readers can scan with these keys instead of reporting them.

Raised in the review of #6052.

🤖 Generated with Claude Code

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