diff options
author | Chris Ballinger <chrisballinger@gmail.com> | 2016-04-13 16:53:47 -0700 |
---|---|---|
committer | Chris Ballinger <chrisballinger@gmail.com> | 2016-04-13 16:53:47 -0700 |
commit | daab2a58af947cddd67fe9f30dd3a9fc327650c0 (patch) | |
tree | 6d2e3abfc160198ec1d8e521a74b1f1d236c0ea3 /xcode/OLMKit/OLMAccount.h | |
parent | f505113fb7a6d61015ad8050b3fb4e26df029150 (diff) |
OLMAccount and OLMSession serialization
Diffstat (limited to 'xcode/OLMKit/OLMAccount.h')
-rw-r--r-- | xcode/OLMKit/OLMAccount.h | 8 |
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; |