Signal-iOS/SignalServiceKit/protobuf
Jordan Rose 4c8d7662a6 Add OWSIdentityManager.shouldSharePhoneNumber(with:transaction:)
When someone sends a message to your PNI, your responses (from your
ACI) must include a PNI signature, and the sealed sender certificate
you use during this period should include your phone number. This
confirms to the other user that your ACI is associated with your PNI.

This commit adds the state tracking that and ensures that both
TSOutgoingMessage and OWSUDManager check that state when building 1:1
messages and choosing certificates, respectively. Later commits will
set and clear this flag as needed.
2022-05-19 14:20:53 -07:00
..
ContactDiscovery.proto Generate CDS protos 2022-02-22 12:41:04 -08:00
DeviceTransfer.proto Device Transfer Service 2020-05-18 20:48:08 -07:00
Fingerprint.proto Respond to CR. 2018-08-03 14:03:02 -04:00
Groups.proto Lazily deserialize individual group changes 2022-01-20 12:00:50 -08:00
KeyBackup.proto Proto changes 2019-10-14 14:51:04 -07:00
Makefile Generate CDS protos 2022-02-22 12:41:04 -08:00
Provisioning.proto Add PNI-related fields to the ProvisioningMessage proto 2022-03-18 13:03:55 -07:00
README.md Fix typos 2022-03-18 11:31:06 -07:00
SessionRecord.proto SSK: Fix session migration for absent pre-key IDs 2021-01-28 12:03:50 -08:00
SignalIOS.proto Remove @required from proto enums. 2019-05-29 11:05:01 -04:00
SignalService.proto Add OWSIdentityManager.shouldSharePhoneNumber(with:transaction:) 2022-05-19 14:20:53 -07:00
StorageService.proto Sync preferred reactions through storage service 2022-01-03 15:35:37 -08:00
WebSocketResources.proto Remove @required from proto enums. 2019-05-29 11:05:01 -04:00

SignalServiceKit Protobufs

These protobuf definitions are copied from Signal-Android, but modified to match some iOS conventions.

Prerequisites

Install Apple's swift-protobuf (not the similarly named protobuf-swift)

brew install swift-protobuf

This should install an up to date protobuf package as a dependency. Note that since we use the legacy proto2 format, we need to specify this in our .proto files.

syntax = "proto2";

Building Protobuf

cd ~/src/WhisperSystems/SignalServiceKit/protobuf
make