2025-06-25 10:30:40 -07:00
|
|
|
/*
|
|
|
|
* Copyright 2020 Signal Messenger, LLC
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
|
|
|
syntax = "proto2";
|
2021-07-20 16:18:35 -04:00
|
|
|
|
2018-02-15 14:59:46 -05:00
|
|
|
package signalservice;
|
2014-07-26 01:31:41 -04:00
|
|
|
|
2025-06-25 10:30:40 -07:00
|
|
|
option java_package = "org.whispersystems.signalservice.internal.push";
|
|
|
|
option java_outer_classname = "ProvisioningProtos";
|
2015-01-19 10:23:25 -10:00
|
|
|
|
2025-06-25 10:30:40 -07:00
|
|
|
// An opaque address sent by the server when clients first open a provisioning
|
|
|
|
// WebSocket
|
|
|
|
message ProvisioningAddress {
|
|
|
|
|
|
|
|
// The opaque provisioning address for the active provisioning WebSocket
|
|
|
|
// session; clients should not attempt to interpret or modify the contents
|
|
|
|
// of the address string
|
|
|
|
optional string address = 1;
|
|
|
|
}
|
2015-01-23 11:19:29 -10:00
|
|
|
|
|
|
|
message ProvisionEnvelope {
|
|
|
|
optional bytes publicKey = 1;
|
2025-06-25 10:30:40 -07:00
|
|
|
optional bytes body = 2; // Encrypted ProvisionMessage
|
2014-07-26 01:31:41 -04:00
|
|
|
}
|
|
|
|
|
2015-01-23 11:19:29 -10:00
|
|
|
message ProvisionMessage {
|
2025-06-25 10:30:40 -07:00
|
|
|
optional bytes aciIdentityKeyPublic = 1;
|
|
|
|
optional bytes aciIdentityKeyPrivate = 2;
|
|
|
|
optional bytes pniIdentityKeyPublic = 11;
|
|
|
|
optional bytes pniIdentityKeyPrivate = 12;
|
|
|
|
optional string aci = 8;
|
|
|
|
optional string pni = 10;
|
|
|
|
optional string number = 3;
|
|
|
|
optional string provisioningCode = 4;
|
|
|
|
optional string userAgent = 5;
|
|
|
|
optional bytes profileKey = 6;
|
|
|
|
optional bool readReceipts = 7;
|
|
|
|
optional uint32 provisioningVersion = 9;
|
|
|
|
optional bytes masterKey = 13; // Deprecated, but required by linked devices
|
|
|
|
optional bytes ephemeralBackupKey = 14; // 32 bytes
|
|
|
|
optional string accountEntropyPool = 15;
|
|
|
|
optional bytes mediaRootBackupKey = 16; // 32-bytes
|
|
|
|
optional bytes aciBinary = 17; // 16-byte UUID
|
|
|
|
optional bytes pniBinary = 18; // 16-byte UUID
|
|
|
|
// NEXT ID: 19
|
2014-07-26 01:31:41 -04:00
|
|
|
}
|
2020-03-05 13:14:58 -08:00
|
|
|
|
|
|
|
enum ProvisioningVersion {
|
|
|
|
option allow_alias = true;
|
|
|
|
|
2025-06-25 10:30:40 -07:00
|
|
|
INITIAL = 0;
|
2020-03-05 13:14:58 -08:00
|
|
|
TABLET_SUPPORT = 1;
|
2025-06-25 10:30:40 -07:00
|
|
|
CURRENT = 1;
|
2021-07-20 16:18:35 -04:00
|
|
|
}
|