You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.9 KiB

  1. syntax = "proto3";
  2. package tendermint.privval;
  3. option go_package = "github.com/tendermint/tendermint/proto/privval";
  4. import "third_party/proto/gogoproto/gogo.proto";
  5. import "proto/crypto/keys/types.proto";
  6. import "proto/types/types.proto";
  7. message RemoteSignerError {
  8. int32 code = 1;
  9. string description = 2;
  10. }
  11. // PubKeyRequest requests the consensus public key from the remote signer.
  12. message PubKeyRequest {}
  13. // PubKeyResponse is a response message containing the public key.
  14. message PubKeyResponse {
  15. tendermint.crypto.keys.PublicKey pub_key = 1;
  16. RemoteSignerError error = 2;
  17. }
  18. // SignVoteRequest is a request to sign a vote
  19. message SignVoteRequest {
  20. tendermint.types.Vote vote = 1;
  21. }
  22. // SignedVoteResponse is a response containing a signed vote or an error
  23. message SignedVoteResponse {
  24. tendermint.types.Vote vote = 1;
  25. RemoteSignerError error = 2;
  26. }
  27. // SignProposalRequest is a request to sign a proposal
  28. message SignProposalRequest {
  29. tendermint.types.Proposal proposal = 1 [(gogoproto.nullable) = false];
  30. }
  31. // SignedProposalResponse is response containing a signed proposal or an error
  32. message SignedProposalResponse {
  33. tendermint.types.Proposal proposal = 1;
  34. RemoteSignerError error = 2;
  35. }
  36. // PingRequest is a request to confirm that the connection is alive.
  37. message PingRequest {}
  38. // PingResponse is a response to confirm that the connection is alive.
  39. message PingResponse {}
  40. message Message {
  41. oneof sum {
  42. PubKeyRequest pub_key_request = 1;
  43. PubKeyResponse pub_key_response = 2;
  44. SignVoteRequest sign_vote_request = 3;
  45. SignedVoteResponse signed_vote_response = 4;
  46. SignProposalRequest sign_proposal_request = 5;
  47. SignedProposalResponse signed_proposal_response = 6;
  48. PingRequest ping_request = 7;
  49. PingResponse ping_response = 8;
  50. }
  51. }