27 lines
777 B
Objective-C
27 lines
777 B
Objective-C
//
|
|
// Copyright (c) 2019 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@class SignalServiceAddress;
|
|
|
|
extern NSString *const OWSUserAgent;
|
|
extern uint32_t const OWSProvisioningVersion;
|
|
|
|
@interface OWSProvisioningMessage : NSObject
|
|
|
|
- (instancetype)initWithMyPublicKey:(NSData *)myPublicKey
|
|
myPrivateKey:(NSData *)myPrivateKey
|
|
theirPublicKey:(NSData *)theirPublicKey
|
|
accountAddress:(SignalServiceAddress *)accountAddress
|
|
profileKey:(NSData *)profileKey
|
|
readReceiptsEnabled:(BOOL)areReadReceiptsEnabled
|
|
provisioningCode:(NSString *)provisioningCode;
|
|
|
|
- (nullable NSData *)buildEncryptedMessageBody;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|