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.

30 lines
702 B

  1. syntax = "proto3";
  2. package tendermint.p2p;
  3. option go_package = "github.com/tendermint/tendermint/proto/p2p";
  4. import "third_party/proto/gogoproto/gogo.proto";
  5. import "proto/crypto/keys/types.proto";
  6. message PacketPing {}
  7. message PacketPong {}
  8. message PacketMsg {
  9. int32 channel_id = 1 [(gogoproto.customname) = "ChannelID"];
  10. int32 eof = 2 [(gogoproto.customname) = "EOF"];
  11. bytes data = 3;
  12. }
  13. message Packet {
  14. oneof sum {
  15. PacketPing packet_ping = 1;
  16. PacketPong packet_pong = 2;
  17. PacketMsg packet_msg = 3;
  18. }
  19. }
  20. message AuthSigMessage {
  21. tendermint.crypto.keys.PublicKey pub_key = 1 [(gogoproto.nullable) = false];
  22. bytes sig = 2;
  23. }