github.com/adoriasoft/tendermint@v0.34.0-dev1.0.20200722151356-96d84601a75a/proto/tendermint/privval/types.proto (about) 1 syntax = "proto3"; 2 package tendermint.privval; 3 4 import "gogoproto/gogo.proto"; 5 import "tendermint/crypto/keys.proto"; 6 import "tendermint/types/types.proto"; 7 8 option go_package = "github.com/adoriasoft/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 27 // PubKeyResponse is a response message containing the public key. 28 message PubKeyResponse { 29 tendermint.crypto.PublicKey pub_key = 1; 30 RemoteSignerError error = 2; 31 } 32 33 // SignVoteRequest is a request to sign a vote 34 message SignVoteRequest { 35 tendermint.types.Vote vote = 1; 36 } 37 38 // SignedVoteResponse is a response containing a signed vote or an error 39 message SignedVoteResponse { 40 tendermint.types.Vote vote = 1; 41 RemoteSignerError error = 2; 42 } 43 44 // SignProposalRequest is a request to sign a proposal 45 message SignProposalRequest { 46 tendermint.types.Proposal proposal = 1 [(gogoproto.nullable) = false]; 47 } 48 49 // SignedProposalResponse is response containing a signed proposal or an error 50 message SignedProposalResponse { 51 tendermint.types.Proposal proposal = 1; 52 RemoteSignerError error = 2; 53 } 54 55 // PingRequest is a request to confirm that the connection is alive. 56 message PingRequest {} 57 58 // PingResponse is a response to confirm that the connection is alive. 59 message PingResponse {} 60 61 message Message { 62 oneof sum { 63 PubKeyRequest pub_key_request = 1; 64 PubKeyResponse pub_key_response = 2; 65 SignVoteRequest sign_vote_request = 3; 66 SignedVoteResponse signed_vote_response = 4; 67 SignProposalRequest sign_proposal_request = 5; 68 SignedProposalResponse signed_proposal_response = 6; 69 PingRequest ping_request = 7; 70 PingResponse ping_response = 8; 71 } 72 } 73