Centralized relay manager (#182)

* noise: send nonce

* broadcast manager

* add missing file
This commit is contained in:
callebtc
2025-07-25 01:46:27 +02:00
committed by GitHub
parent bc14b9f179
commit 167237f7c0
4 changed files with 258 additions and 62 deletions
@@ -316,6 +316,15 @@ class BluetoothMeshService(private val context: Context) {
peerManager.updatePeerLastSeen(peerID)
}
// Network information for relay manager
override fun getNetworkSize(): Int {
return peerManager.getActivePeerCount()
}
override fun getBroadcastRecipient(): ByteArray {
return SpecialRecipients.BROADCAST
}
override fun handleNoiseHandshake(routed: RoutedPacket, step: Int): Boolean {
return runBlocking { securityManager.handleNoiseHandshake(routed, step) }
}