feat(primitives): k256 crate fallback for secp256k1 module (#9989)

This commit is contained in:
Alexey Shekhirin
2024-08-02 13:53:59 +01:00
committed by GitHub
parent 340c95eba0
commit d7f9a255e1
15 changed files with 192 additions and 41 deletions

View File

@ -33,7 +33,8 @@ secp256k1 = { workspace = true, features = [
"global-context",
"recovery",
"rand",
] }
], optional = true }
k256.workspace = true
# for eip-4844
c-kzg = { workspace = true, features = ["serde"], optional = true }
@ -81,10 +82,9 @@ pprof = { workspace = true, features = [
"frame-pointer",
"criterion",
] }
secp256k1.workspace = true
[features]
default = ["c-kzg", "alloy-compat", "std", "reth-codec"]
default = ["c-kzg", "alloy-compat", "std", "reth-codec", "secp256k1"]
std = ["thiserror-no-std?/std", "reth-primitives-traits/std"]
reth-codec = ["dep:reth-codecs", "dep:zstd", "dep:modular-bitfield"]
asm-keccak = ["alloy-primitives/asm-keccak"]
@ -100,6 +100,7 @@ arbitrary = [
"dep:proptest",
"reth-codec",
]
secp256k1 = ["dep:secp256k1"]
c-kzg = ["dep:c-kzg", "revm-primitives/c-kzg", "dep:tempfile", "alloy-eips/kzg", "dep:thiserror-no-std"]
optimism = [
"reth-chainspec/optimism",