Authenticate private media capabilities in Noise

This commit is contained in:
jack
2026-07-25 23:00:27 +02:00
committed by jack
parent 30215de295
commit 71e5d8da10
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,