Skip to content

Commit

Permalink
Replace rust_secp256k1 with k256
Browse files Browse the repository at this point in the history
  • Loading branch information
deuszx committed Feb 25, 2025
1 parent fb36a49 commit 4f490c0
Show file tree
Hide file tree
Showing 8 changed files with 217 additions and 103 deletions.
40 changes: 27 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ revm-interpreter = { version = "15.1.0", features = [ "serde" ] }
revm-precompile = "16.0.0"
revm-primitives = "15.1.0"
rocksdb = "0.21.0"
secp256k1 = { version = "0.30.0", default-features = false, features = [ "alloc", "rand", "serde" ] }
k256 = { version = "0.13.4", default-features = false, features = [
"ecdsa", "pem", "sha256", "serde", "arithmetic"
]}
scylla = "0.15.1"
semver = "1.0.22"
serde = { version = "1.0.197", features = ["derive"] }
Expand Down
47 changes: 26 additions & 21 deletions examples/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion linera-base/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ futures.workspace = true
getrandom = { workspace = true, optional = true }
hex.workspace = true
is-terminal.workspace = true
k256.workspace = true
linera-witty = { workspace = true, features = ["macros"] }
prometheus = { workspace = true, optional = true }
proptest = { workspace = true, optional = true, features = ["alloc"] }
rand.workspace = true
reqwest = { workspace = true, optional = true }
secp256k1.workspace = true
serde.workspace = true
serde-name.workspace = true
serde_bytes.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion linera-base/src/crypto/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub enum CryptoError {
#[error("Could not parse integer: {0}")]
ParseIntError(#[from] ParseIntError),
#[error("secp256k1 error: {0}")]
Secp256k1Error(::secp256k1::Error),
Secp256k1Error(k256::ecdsa::Error),
}

#[cfg(with_getrandom)]
Expand Down
Loading

0 comments on commit 4f490c0

Please sign in to comment.