session-ios/SessionMessagingKit/Utilities/General.swift
2020-12-07 09:29:46 +11:00

7 lines
227 B
Swift

public func getUserHexEncodedPublicKey() -> String {
if let keyPair = OWSIdentityManager.shared().identityKeyPair() { // Can be nil under some circumstances
return keyPair.hexEncodedPublicKey
}
return ""
}