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.
		
		
		
		
		
			
		
			
				
	
	
		
			19 lines
		
	
	
		
			551 B
		
	
	
	
		
			Objective-C
		
	
			
		
		
	
	
			19 lines
		
	
	
		
			551 B
		
	
	
	
		
			Objective-C
		
	
| #import "PregeneratedKeyAgreementParticipantProtocol.h"
 | |
| 
 | |
| @implementation PregeneratedKeyAgreementParticipantProtocol
 | |
| 
 | |
| +(PregeneratedKeyAgreementParticipantProtocol*) pregeneratedWithParticipant:(id<KeyAgreementParticipant>)participant {
 | |
|     PregeneratedKeyAgreementParticipantProtocol* s = [PregeneratedKeyAgreementParticipantProtocol new];
 | |
|     s->participant = participant;
 | |
|     return s;
 | |
| }
 | |
| 
 | |
| -(id<KeyAgreementParticipant>) generateParticipantWithNewKeys {
 | |
|     return participant;
 | |
| }
 | |
| -(NSData*) getId {
 | |
|     return participant.getProtocol.getId;
 | |
| }
 | |
| 
 | |
| @end
 |