14 lines
311 B
Swift
14 lines
311 B
Swift
|
|
||
|
extension Storage {
|
||
|
|
||
|
public static let shared = Storage()
|
||
|
|
||
|
public func with(_ work: @escaping (Any) -> Void) {
|
||
|
Storage.writeSync { work($0) }
|
||
|
}
|
||
|
|
||
|
public func getUserPublicKey() -> String? {
|
||
|
return OWSIdentityManager.shared().identityKeyPair()?.publicKey()?.toHexString()
|
||
|
}
|
||
|
}
|