Authenticate private media capabilities in Noise

This commit is contained in:
jack
2026-07-25 16:58:57 +02:00
committed by jack
parent 024ae71f0a
commit 0e29885d43
31 changed files with 1412 additions and 133 deletions
@@ -181,6 +181,14 @@ struct BLEPeerRegistry {
peers[peerID] = peer
}
/// Replaces the announcement signing key only after the surrounding Noise
/// session proved possession of this peer's static key.
mutating func bindAuthenticatedSigningPublicKey(_ key: Data, for peerID: PeerID) {
guard var peer = peers[peerID.toShort()] else { return }
peer.signingPublicKey = key
peers[peer.peerID] = peer
}
mutating func upsertVerifiedAnnounce(
peerID: PeerID,
nickname: String,