session-ios/SessionProtocolKit/Storage.swift

14 lines
569 B
Swift
Raw Normal View History

2020-11-05 07:04:39 +01:00
public enum ClosedGroupRatchetCollectionType {
case old, current
}
public protocol SessionProtocolKitStorageProtocol {
2020-12-07 06:00:21 +01:00
func writeSync(with block: @escaping (Any) -> Void)
2020-11-05 07:04:39 +01:00
2020-11-16 00:34:47 +01:00
func getUserKeyPair() -> ECKeyPair?
2020-11-05 07:04:39 +01:00
func getClosedGroupRatchet(for groupPublicKey: String, senderPublicKey: String, from collection: ClosedGroupRatchetCollectionType) -> ClosedGroupRatchet?
func setClosedGroupRatchet(for groupPublicKey: String, senderPublicKey: String, ratchet: ClosedGroupRatchet, in collection: ClosedGroupRatchetCollectionType, using transaction: Any)
}