Skip to content

feat(dashcore-crypto): expose typed ECDH on EcdsaSecretKey #1446

Open

Description

@ZocoLini

Follow-up of dashpay/base-sdk#137, which adds typed secp256k1 ECDH to dash-pkc (EcdsaSecretKey::ecdh_shared_secret returning the hashed 32-byte secret, and EcdsaSecretKey::ecdh_shared_point returning the raw 64-byte point).

Platform reaches these keys through dashcore::crypto::ecdsa, and dashcore-crypto wraps the dash-pkc types in its own newtypes (crypto/src/ecdsa.rs). The new methods will not reach Platform until the wrapper exposes them.

Once a dash-pkc release ships the base-sdk change, this needs to:

  • bump dash-pkc in the workspace Cargo.toml;
  • delegate ecdh_shared_secret and ecdh_shared_point from the EcdsaSecretKey wrapper, taking the dashcore EcdsaPublicKey as the peer.

This lets Platform drop its remaining direct secp256k1 dependencies at the ECDH boundaries (see dashpay/platform#5519).

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