1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//! Nklave Cosmos - Remote signer protocol handler for Cosmos/CometBFT
//!
//! This crate implements the Tendermint private validator protocol (privval),
//! allowing Nklave to serve as a remote signer for Cosmos validators.
//!
//! # Protocol Support
//!
//! - gRPC PrivValidatorAPI service
//! - PubKeyRequest/Response
//! - SignVoteRequest/Response
//! - SignProposalRequest/Response
//! - Ping/Pong keepalive
//!
//! # Usage
//!
//! ```ignore
//! use nklave_cosmos::{CosmosServer, CosmosServerConfig};
//! use nklave_core::SigningService;
//!
//! let config = CosmosServerConfig {
//! listen_addr: "[::1]:26659".to_string(),
//! chain_id: "cosmoshub-4".to_string(),
//! };
//!
//! let server = CosmosServer::new(signing_service, config);
//! server.serve().await?;
//! ```
pub use CosmosError;
pub use ;
pub use CosmosSigningService;
pub use ;