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.

50 lines
1.6 KiB

  1. syntax = "proto3";
  2. package tendermint.proto.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.proto.crypto.keys.PublicKey pub_key = 1 [(gogoproto.nullable) = false];
  16. RemoteSignerError error = 2;
  17. }
  18. // SignVoteRequest is a request to sign a vote
  19. message SignVoteRequest {
  20. tendermint.proto.types.Vote vote = 1 [(gogoproto.nullable) = false];
  21. }
  22. // SignedVoteResponse is a response containing a signed vote or an error
  23. message SignVoteResponse {
  24. tendermint.proto.types.Vote vote = 1 [(gogoproto.nullable) = false];
  25. RemoteSignerError error = 2;
  26. }
  27. // SignProposalRequest is a request to sign a proposal
  28. message SignProposalRequest {
  29. tendermint.proto.types.Proposal proposal = 1 [(gogoproto.nullable) = false];
  30. }
  31. // SignedProposalResponse is response containing a signed proposal or an error
  32. message SignedProposalResponse {
  33. tendermint.proto.types.Proposal proposal = 1 [(gogoproto.nullable) = false];
  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 {}