Authenticate private media capabilities in Noise

This commit is contained in:
jack
2026-07-26 02:09:31 +02:00
committed by jack
parent 40238c5e43
commit ec795520ee
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,