github.com/number571/tendermint@v0.34.11-gost/proto/tendermint/privval/types.proto (about) 1 syntax = "proto3"; 2 package tendermint.privval; 3 4 import "tendermint/crypto/keys.proto"; 5 import "tendermint/types/types.proto"; 6 import "gogoproto/gogo.proto"; 7 8 option go_package = "github.com/number571/tendermint/proto/tendermint/privval"; 9 10 enum Errors { 11 ERRORS_UNKNOWN = 0; 12 ERRORS_UNEXPECTED_RESPONSE = 1; 13 ERRORS_NO_CONNECTION = 2; 14 ERRORS_CONNECTION_TIMEOUT = 3; 15 ERRORS_READ_TIMEOUT = 4; 16 ERRORS_WRITE_TIMEOUT = 5; 17 } 18 19 message RemoteSignerError { 20 int32 code = 1; 21 string description = 2; 22 } 23 24 // PubKeyRequest requests the consensus public key from the remote signer. 25 message PubKeyRequest { 26 string chain_id = 1; 27 } 28 29 // PubKeyResponse is a response message containing the public key. 30 message PubKeyResponse { 31 tendermint.crypto.PublicKey pub_key = 1 [(gogoproto.nullable) = false]; 32 RemoteSignerError error = 2; 33 } 34 35 // SignVoteRequest is a request to sign a vote 36 message SignVoteRequest { 37 tendermint.types.Vote vote = 1; 38 string chain_id = 2; 39 } 40 41 // SignedVoteResponse is a response containing a signed vote or an error 42 message SignedVoteResponse { 43 tendermint.types.Vote vote = 1 [(gogoproto.nullable) = false]; 44 RemoteSignerError error = 2; 45 } 46 47 // SignProposalRequest is a request to sign a proposal 48 message SignProposalRequest { 49 tendermint.types.Proposal proposal = 1; 50 string chain_id = 2; 51 } 52 53 // SignedProposalResponse is response containing a signed proposal or an error 54 message SignedProposalResponse { 55 tendermint.types.Proposal proposal = 1 [(gogoproto.nullable) = false]; 56 RemoteSignerError error = 2; 57 } 58 59 // PingRequest is a request to confirm that the connection is alive. 60 message PingRequest {} 61 62 // PingResponse is a response to confirm that the connection is alive. 63 message PingResponse {} 64 65 message Message { 66 oneof sum { 67 PubKeyRequest pub_key_request = 1; 68 PubKeyResponse pub_key_response = 2; 69 SignVoteRequest sign_vote_request = 3; 70 SignedVoteResponse signed_vote_response = 4; 71 SignProposalRequest sign_proposal_request = 5; 72 SignedProposalResponse signed_proposal_response = 6; 73 PingRequest ping_request = 7; 74 PingResponse ping_response = 8; 75 } 76 } 77 78 // AuthSigMessage is duplicated from p2p prior to the P2P refactor. 79 // It is used for the SecretConnection until we migrate privval to gRPC. 80 // https://github.com/number571/tendermint/issues/4698 81 message AuthSigMessage { 82 tendermint.crypto.PublicKey pub_key = 1 [(gogoproto.nullable) = false]; 83 bytes sig = 2; 84 }