aboutsummaryrefslogtreecommitdiff
path: root/xcode/OLMKit/OLMAccount.h
diff options
context:
space:
mode:
Diffstat (limited to 'xcode/OLMKit/OLMAccount.h')
-rw-r--r--xcode/OLMKit/OLMAccount.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/xcode/OLMKit/OLMAccount.h b/xcode/OLMKit/OLMAccount.h
index cfa7129..a2923f9 100644
--- a/xcode/OLMKit/OLMAccount.h
+++ b/xcode/OLMKit/OLMAccount.h
@@ -9,7 +9,9 @@
#import <Foundation/Foundation.h>
#import "OLMSerializable.h"
-@interface OLMAccount : NSObject <OLMSerializable>
+@class OLMSession;
+
+@interface OLMAccount : NSObject <OLMSerializable, NSSecureCoding>
/** Creates new account */
- (instancetype) initNewAccount;
@@ -18,11 +20,13 @@
- (NSDictionary*) identityKeys;
/** signs message with ed25519 key for account */
-- (NSData*) signMessage:(NSData*)messageData;
+- (NSString*) signMessage:(NSData*)messageData;
/** Public parts of the unpublished one time keys for the account */
- (NSDictionary*) oneTimeKeys;
+- (BOOL) removeOneTimeKeysForSession:(OLMSession*)session;
+
/** Marks the current set of one time keys as being published. */
- (void) markKeysAsPublished;