Crates.io | cometbft-p2p |
lib.rs | cometbft-p2p |
version | 0.1.0 |
created_at | 2025-08-26 16:40:41.292225+00 |
updated_at | 2025-08-26 16:40:41.292225+00 |
description | Pure Rust implementation of CometBFT's encrypted P2P protocol |
homepage | |
repository | https://github.com/iqlusioninc/iqkms |
max_upload_size | |
id | 1811458 |
size | 125,324 |
cometbft-p2p
Pure Rust implementation of the Secret Connection transport encryption protocol used by CometBFT for peer-to-peer (P2P) connections.
SecretConnection
implementation for std::io
(e.g. TcpStream
)AsyncSecretConnection
implementation based on tokio
Message
-oriented interface which abstracts away low-level buffering/framingtendermint-rs
Tested in production with CometBFT v0.37, v0.38, and v1.0.
Should also be compatible with legacy Tendermint versions v0.34+, as well as earlier versions of CometBFT.
The Secret Connection protocol uses the following cryptographic algorithms:
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.