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
+1 -1
View File
@@ -100,7 +100,7 @@ struct NostrEmbeddedBitChat {
if let maybeData = Data(hexString: recipientPeerID) {
if maybeData.count == 32 {
// Treat as Noise static public key; derive peerID from fingerprint
return PeerIDUtils.derivePeerID(fromPublicKey: maybeData)
return PeerID(publicKey: maybeData).id
} else if maybeData.count == 8 {
// Already an 8-byte peer ID
return recipientPeerID