PeerID 7/n: Unify PeerIDUtils & PeerIDResolver (#744)

This commit is contained in:
Islam
2025-10-02 13:41:47 +02:00
committed by GitHub
parent 8cfee095d3
commit f2473f857b
6 changed files with 8 additions and 40 deletions
-9
View File
@@ -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))
}
}