Skip to content

v0.41.0

Pre-release
Pre-release

Choose a tag to compare

@dianab-cl dianab-cl released this 26 Oct 16:26
· 1 commit to main since this release
729247b

Warning

This is a breaking release.

  • It changes a public trait in tendermint, the voting-power API in tendermint-light-client-verifier, and upgrades several major dependencies (prost/tonic 0.14, MSRV 1.82).
  • All tendermint-* crates move from 0.40.x to 0.41.0 together.
  • Downstream crates must update their requirements to pick up this release, including its TLS security fix.

⚠️ Breaking changes

Verifier::verify now takes &self (#1512, closes #1511)

tendermint::crypto::signature::Verifier::verify is now an instance method rather than a static one, so signature verifiers can carry state.

  • Custom Verifier implementations must add &self to verify.
  • validator::Info::verify_signature now takes a verifier: &V argument.
  • ProvidedVotingPowerCalculator<V> (light-client-verifier) now owns a verifier: V. Construct it with ProvidedVotingPowerCalculator::new(verifier); Default is only available when V: Default. Its Send/Sync bounds now follow V, and the trait impl requires V: Send + Sync.

Migration:

// Before
impl Verifier for MyVerifier {
    fn verify(pubkey: PublicKey, msg: &[u8], signature: &Signature) -> Result<(), Error> { /* ... */ }
}
MyVerifier::verify(pubkey, msg, &sig)?;

// After
impl Verifier for MyVerifier {
    fn verify(&self, pubkey: PublicKey, msg: &[u8], signature: &Signature) -> Result<(), Error> { /* ... */ }
}
my_verifier.verify(pubkey, msg, &sig)?;

Dependency upgrades (#1522)

  • prost 0.14 (0.14.3) and tonic 0.14. Generated protobuf types in tendermint-proto now target prost 0.14; mixing them with prost 0.13 types will not compile.
  • reqwest 0.12, async-tungstenite 0.28, k256 0.14, rustls 0.23.
  • Minimum supported Rust version is now 1.82.

🔒 Security

Reject certificate chains through distrusted eMudhra intermediates (#1521)

  • tendermint-rpc's http-client and websocket-client features now require rustls-webpki >= 0.103.16, which rejects chains through the distrusted eMudhra intermediate CA keys.
  • http-client now also requires rustls >= 0.23.46 (ring provider, the same one reqwest's rustls-tls-native-roots already uses, so no new crypto backend).
  • Minimum reqwest raised to 0.12.5, the first release on rustls 0.23.
  • tools/rpc-probe moves to a rustls 0.23-based async-tungstenite with the same verifier floor.

No code or API changes come from this fix. Existing lockfiles with an older rustls-webpki will be bumped when you upgrade tendermint-rpc.

New contributors

Full Changelog: v0.40.4...v0.41.0