mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-25 23:25:20 +00:00
PeerID 7/n: Unify PeerIDUtils & PeerIDResolver (#744)
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
import Foundation
|
||||
|
||||
struct PeerIDUtils {
|
||||
/// Derive the stable 16-hex peer ID from a Noise static public key
|
||||
static func derivePeerID(fromPublicKey publicKey: Data) -> String {
|
||||
String(publicKey.sha256Fingerprint().prefix(16))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user