mirror of https://github.com/oxen-io/session-ios
				
				
				
			
			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.
		
		
		
		
		
			
		
			
				
	
	
		
			22 lines
		
	
	
		
			738 B
		
	
	
	
		
			Objective-C
		
	
			
		
		
	
	
			22 lines
		
	
	
		
			738 B
		
	
	
	
		
			Objective-C
		
	
| //
 | |
| //  Copyright (c) 2017 Open Whisper Systems. All rights reserved.
 | |
| //
 | |
| 
 | |
| #import <Foundation/Foundation.h>
 | |
| #import "PreKeyRecord.h"
 | |
| #import <Curve25519Kit/Curve25519.h>
 | |
| 
 | |
| @interface SignedPreKeyRecord : PreKeyRecord <NSSecureCoding>
 | |
| 
 | |
| @property (nonatomic, readonly) NSData *signature;
 | |
| @property (nonatomic, readonly) NSDate *generatedAt;
 | |
| // Defaults to NO.  Should only be set after the service accepts this record.
 | |
| @property (nonatomic, readonly) BOOL wasAcceptedByService;
 | |
| 
 | |
| - (instancetype)initWithId:(int)identifier keyPair:(ECKeyPair *)keyPair signature:(NSData*)signature generatedAt:(NSDate*)generatedAt;
 | |
| - (instancetype)initWithId:(int)identifier keyPair:(ECKeyPair *)keyPair NS_UNAVAILABLE;
 | |
| 
 | |
| - (void)markAsAcceptedByService;
 | |
| 
 | |
| @end
 |