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)
|
|
|
|
}
|