Official cwtch.im peer and server implementations.
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.

group_message.proto 964B

1234567891011121314151617181920212223242526272829303132333435
  1. syntax = "proto2";
  2. package protocol;
  3. import "ControlChannel.proto";
  4. message CwtchServerPacket {
  5. optional GroupMessage group_message = 1;
  6. optional FetchMessage fetch_message = 2;
  7. }
  8. extend protocol.ChannelResult {
  9. optional bytes server_nonce = 8200; // 32 random bytes
  10. }
  11. message FetchMessage {
  12. }
  13. message GroupMessage {
  14. required bytes ciphertext = 1;
  15. required bytes spamguard = 2;
  16. required bytes signature = 3;
  17. }
  18. // DecryptedGroupMessage is *never* sent in the clear on the wire
  19. // and is only ever sent when encrypted in the ciphertext parameter of
  20. // GroupMessage
  21. message DecryptedGroupMessage {
  22. required string onion = 1;
  23. required int32 timestamp = 2;
  24. required string text = 3;
  25. required bytes signed_group_id = 4;
  26. required bytes previous_message_sig =5;
  27. // Used to prevent analysis on text length, length is 1024 - len(text)
  28. required bytes padding = 6;
  29. }