Gate the PKI-decrypt key on signer-proven, not the opportunistic cache (#11116)

This commit is contained in:
Thomas Göttgens
2026-07-22 11:12:06 +02:00
committed by GitHub
parent 11c510ff1b
commit f09f2b1366
3 changed files with 26 additions and 6 deletions
+4
View File
@@ -364,6 +364,10 @@ class NodeDB
/// opportunistic caches) - the pin reference for caches that mirror NodeDB's key hygiene.
bool copyPublicKeyAuthoritative(NodeNum n, meshtastic_NodeInfoLite_public_key_t &out);
/// Key for the inbound-decrypt path: authoritative (hot/warm), or a cold-tier cache key only when
/// it is signer-proven. Keeps unverified TOFU cache keys from backing pki_encrypted attribution.
bool copyPublicKeyForDecrypt(NodeNum n, meshtastic_NodeInfoLite_public_key_t &out);
/// True if n is a known XEdDSA signer for exactly `key32` (hot signed bitfield or warm
/// signer bit); the key match stops a rotated key inheriting a stale signer verdict.
bool isVerifiedSignerForKey(NodeNum n, const uint8_t *key32);