Unverified Commit 9f5d9fa9 authored by Michal Kucharczyk's avatar Michal Kucharczyk Committed by GitHub
Browse files

core: replace secp256k with k256 in crypto::ecdsa (#3525)

This PR replaces the usage of
[secp256k](https://crates.io/crates/secp256k1) crate with
[k256](https://crates.io/crates/k256) in `core::crypto::ecdsa` for
`non-std` environments as outcome of discussion in #3448.

`secp256k1` is used in `std`, meaning that we should not affect host
performance with this PR.
`k256` is enabled in runtimes (`no-std`), and is required to proceed
with #2044.

If desirable, in future we can switch to `k256` also for `std`. That
would require some performance evaluation (e.g. for EVM chains as per
https://github.com/paritytech/polkadot-sdk/issues/3448#issuecomment-1976780391).

Closes https://github.com/paritytech/polkadot-sdk/issues/3448



---------

Co-authored-by: command-bot <>
Co-authored-by: default avatarDavide Galassi <[email protected]>
parent ea458d0b
Pipeline #453409 passed with stages
in 43 minutes and 20 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment