Skip to content

Commit

Permalink
Bump sha2 to v0.10; replace ripemd160 with ripemd v0.1 (informa…
Browse files Browse the repository at this point in the history
…lsystems#1130)

These crates are both based on `digest` v0.10, which is also the same
version used by `k256` v0.11 (informalsystems#1129).

Note that the `ripemd160` crate is now deprecated:

https://docs.rs/ripemd160/latest/ripemd160/

The `ripemd` crate is the replacement. It has the same maintainers
(@RustCrypto), but now combines the former `ripemd160` and `ripemd320`
crates into a single crate.

Co-authored-by: Thane Thomson <[email protected]>
  • Loading branch information
tony-iqlusion and thanethomson authored May 11, 2022
1 parent a453e6e commit cd3e391
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tendermint/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ serde = { version = "1", default-features = false, features = ["derive"] }
serde_json = { version = "1", default-features = false, features = ["alloc"] }
serde_bytes = { version = "0.11", default-features = false }
serde_repr = { version = "0.1", default-features = false }
sha2 = { version = "0.9", default-features = false }
sha2 = { version = "0.10", default-features = false }
signature = { version = "1.2", default-features = false }
subtle = { version = "2", default-features = false }
subtle-encoding = { version = "0.5", default-features = false, features = ["bech32-preview"] }
Expand All @@ -52,13 +52,13 @@ time = { version = "0.3.5", default-features = false, features = ["macros", "par
zeroize = { version = "1.1", default-features = false, features = ["zeroize_derive", "alloc"] }
flex-error = { version = "0.4.4", default-features = false }
k256 = { version = "0.11", optional = true, default-features = false, features = ["ecdsa", "sha256"] }
ripemd160 = { version = "0.9", default-features = false, optional = true }
ripemd = { version = "0.1", default-features = false, optional = true }

[features]
default = ["std"]
std = ["flex-error/std", "flex-error/eyre_tracer", "clock"]
clock = ["time/std"]
secp256k1 = ["k256", "ripemd160"]
secp256k1 = ["k256", "ripemd"]

[dev-dependencies]
pretty_assertions = { version = "0.7.2", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion tendermint/src/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use core::{
};

#[cfg(feature = "secp256k1")]
use ripemd160::Ripemd160;
use ripemd::Ripemd160;
use serde::{de, Deserialize, Deserializer, Serialize, Serializer};
use sha2::{Digest, Sha256};
use subtle::{self, ConstantTimeEq};
Expand Down

0 comments on commit cd3e391

Please sign in to comment.