-
Notifications
You must be signed in to change notification settings - Fork 142
Migrate from tendermint-rs to cometbft-rs
#1124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
To unblock the upgrade to `cometbft-rs` (#1124), this removes the only usage of `cosmrs`, which is for formatting Cosmos JSON public keys.
To unblock the upgrade to `cometbft-rs` (#1124), this removes the only usage of `cosmrs`, which is for formatting Cosmos JSON public keys.
Shella
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huge diff! Overall have a few comments on some weirdness but as long as the compiler approves and someone has tested in a staging/prod env then I say let's land it.
| pub use super::ed25519; | ||
| pub use k256::ecdsa; | ||
| use tendermint_proto as proto; | ||
| // use cometbft_proto as proto; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unused dep, curious if todo below will be fixed in this diff.
| /// | ||
| /// Adapted from: | ||
| /// <https://github.com/cometbft/cometbft/blob/27d2a18/proto/tendermint/types/types.proto#L13> | ||
| /// <https://github.com/cometbft/cometbft/blob/27d2a18/proto/cometbft/types/types.proto#L13> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
404 link
|
|
||
| Ok(Response::SignedRawBytes(sig.into())) | ||
| } | ||
| // TODO(tarcieri): vendor protos |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just checking looks like vendor protos are WIP?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, will get fixed in a followup
### Added - Support for Celestia's extension to sign raw bytes with consensus keys (#969, #1134) - `protocol_version = "v0.38"` configuration option for validators (#1138) - Support for expanded Ed25519 keys including the exported YubiHSM format (#1096) ### Changed - Bump Rust edition to 2024; MSRV 1.85 (#984, #967) - Migrate (back) to `ed25519-dalek` (#991) - Migrate from `tendermint-p2p` to `cometbft-p2p` (#1084) - Migrate from `tendermint-rs` to (iq-)`cometbft-rs` (#1124, #1129, #1139) - Bump `prost` and `tonic` to v0.14 (#1136) - Bump `abscissa_core` to v0.9 (#1146) ### Removed - `cosmrs` dependency (#1125)
Continuation of #975, which replaces the EOL
tendermint-*crates with unreleasedcometbft-*ones.This temporarily disables raw byte signing as added in #969. To add it back, we'll need to vendor the relevant protos.