calculate shared_secret on demand

This commit is contained in:
taco
2025-12-06 16:21:17 +11:00
والد 6db57677f9
کامیت 638f41d143
4فایلهای تغییر یافته به همراه22 افزوده شده و 8 حذف شده
@@ -1238,7 +1238,7 @@ void MyMesh::handleCmdFrame(size_t len) {
if (_store->saveMainIdentity(identity)) {
self_id = identity;
writeOKFrame();
// re-load contacts, to recalc shared secrets
// re-load contacts, to invalidate ecdh shared_secrets
resetContacts();
_store->loadContacts(this);
} else {