You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			40 lines
		
	
	
		
			1006 B
		
	
	
	
		
			Protocol Buffer
		
	
			
		
		
	
	
			40 lines
		
	
	
		
			1006 B
		
	
	
	
		
			Protocol Buffer
		
	
| package signalservice;
 | |
| 
 | |
| option java_package = "org.whispersystems.libsignal.protocol";
 | |
| option java_outer_classname = "WhisperProtos";
 | |
| 
 | |
| message ServerCertificate {
 | |
|     message Certificate {
 | |
|         optional uint32 id  = 1;
 | |
|         optional bytes  key = 2;
 | |
|     }
 | |
| 
 | |
|     optional bytes certificate = 1;
 | |
|     optional bytes signature   = 2;
 | |
| }
 | |
| 
 | |
| // This should perhaps be renamed to something like `SenderInfo`
 | |
| message SenderCertificate {
 | |
|     optional string sender       = 1;
 | |
|     optional uint32 senderDevice = 2;
 | |
| }
 | |
| 
 | |
| message UnidentifiedSenderMessage {
 | |
| 
 | |
|     message Message {
 | |
|         enum Type {
 | |
|             PREKEY_MESSAGE = 1;
 | |
|             MESSAGE        = 2;
 | |
|             LOKI_FRIEND_REQUEST = 3;
 | |
|         }
 | |
| 
 | |
|         optional Type              type              = 1;
 | |
|         optional SenderCertificate senderCertificate = 2;
 | |
|         optional bytes             content           = 3;
 | |
|     }
 | |
| 
 | |
|     optional bytes ephemeralPublic  = 1;
 | |
|     optional bytes encryptedStatic  = 2;
 | |
|     optional bytes encryptedMessage = 3;
 | |
| }
 |