cometbft_proto/prost/
cometbft.privval.v1.rs

1/// remotesignererror is returned when the remote signer fails.
2#[allow(clippy::derive_partial_eq_without_eq)]
3#[derive(Clone, PartialEq, ::prost::Message)]
4pub struct RemoteSignerError {
5    #[prost(int32, tag = "1")]
6    pub code: i32,
7    #[prost(string, tag = "2")]
8    pub description: ::prost::alloc::string::String,
9}
10/// PubKeyRequest requests the consensus public key from the remote signer.
11#[allow(clippy::derive_partial_eq_without_eq)]
12#[derive(Clone, PartialEq, ::prost::Message)]
13pub struct PubKeyRequest {
14    #[prost(string, tag = "1")]
15    pub chain_id: ::prost::alloc::string::String,
16}
17/// PubKeyResponse is a response message containing the public key.
18#[allow(clippy::derive_partial_eq_without_eq)]
19#[derive(Clone, PartialEq, ::prost::Message)]
20pub struct PubKeyResponse {
21    #[prost(message, optional, tag = "1")]
22    pub pub_key: ::core::option::Option<super::super::crypto::v1::PublicKey>,
23    #[prost(message, optional, tag = "2")]
24    pub error: ::core::option::Option<RemoteSignerError>,
25}
26/// SignVoteRequest is a request to sign a vote
27#[allow(clippy::derive_partial_eq_without_eq)]
28#[derive(Clone, PartialEq, ::prost::Message)]
29pub struct SignVoteRequest {
30    #[prost(message, optional, tag = "1")]
31    pub vote: ::core::option::Option<super::super::types::v1::Vote>,
32    #[prost(string, tag = "2")]
33    pub chain_id: ::prost::alloc::string::String,
34}
35/// SignedVoteResponse is a response containing a signed vote or an error
36#[allow(clippy::derive_partial_eq_without_eq)]
37#[derive(Clone, PartialEq, ::prost::Message)]
38pub struct SignedVoteResponse {
39    #[prost(message, optional, tag = "1")]
40    pub vote: ::core::option::Option<super::super::types::v1::Vote>,
41    #[prost(message, optional, tag = "2")]
42    pub error: ::core::option::Option<RemoteSignerError>,
43}
44/// SignProposalRequest is a request to sign a proposal
45#[allow(clippy::derive_partial_eq_without_eq)]
46#[derive(Clone, PartialEq, ::prost::Message)]
47pub struct SignProposalRequest {
48    #[prost(message, optional, tag = "1")]
49    pub proposal: ::core::option::Option<super::super::types::v1::Proposal>,
50    #[prost(string, tag = "2")]
51    pub chain_id: ::prost::alloc::string::String,
52}
53/// SignedProposalResponse is response containing a signed proposal or an error
54#[allow(clippy::derive_partial_eq_without_eq)]
55#[derive(Clone, PartialEq, ::prost::Message)]
56pub struct SignedProposalResponse {
57    #[prost(message, optional, tag = "1")]
58    pub proposal: ::core::option::Option<super::super::types::v1::Proposal>,
59    #[prost(message, optional, tag = "2")]
60    pub error: ::core::option::Option<RemoteSignerError>,
61}
62/// PingRequest is a request to confirm that the connection is alive.
63#[allow(clippy::derive_partial_eq_without_eq)]
64#[derive(Clone, PartialEq, ::prost::Message)]
65pub struct PingRequest {}
66/// PingResponse is a response to confirm that the connection is alive.
67#[allow(clippy::derive_partial_eq_without_eq)]
68#[derive(Clone, PartialEq, ::prost::Message)]
69pub struct PingResponse {}
70/// Message is an abstract message to/from the remote signer.
71#[allow(clippy::derive_partial_eq_without_eq)]
72#[derive(Clone, PartialEq, ::prost::Message)]
73pub struct Message {
74    /// Sum of all possible messages.
75    #[prost(oneof = "message::Sum", tags = "1, 2, 3, 4, 5, 6, 7, 8")]
76    pub sum: ::core::option::Option<message::Sum>,
77}
78/// Nested message and enum types in `Message`.
79pub mod message {
80    /// Sum of all possible messages.
81    #[allow(clippy::derive_partial_eq_without_eq)]
82    #[derive(Clone, PartialEq, ::prost::Oneof)]
83    pub enum Sum {
84        #[prost(message, tag = "1")]
85        PubKeyRequest(super::PubKeyRequest),
86        #[prost(message, tag = "2")]
87        PubKeyResponse(super::PubKeyResponse),
88        #[prost(message, tag = "3")]
89        SignVoteRequest(super::SignVoteRequest),
90        #[prost(message, tag = "4")]
91        SignedVoteResponse(super::SignedVoteResponse),
92        #[prost(message, tag = "5")]
93        SignProposalRequest(super::SignProposalRequest),
94        #[prost(message, tag = "6")]
95        SignedProposalResponse(super::SignedProposalResponse),
96        #[prost(message, tag = "7")]
97        PingRequest(super::PingRequest),
98        #[prost(message, tag = "8")]
99        PingResponse(super::PingResponse),
100    }
101}