Update key retrieval method in StorageCollector to support both standard and firmware keys

This commit is contained in:
Lloyd
2026-01-08 08:52:02 +00:00
parent 4011a6b25e
commit 1b45060e13
@@ -33,8 +33,8 @@ class StorageCollector:
self.letsmesh_handler = None
if config.get("letsmesh", {}).get("enabled", False) and local_identity:
try:
# Get keys from local_identity (signing_key.encode() is the private key seed)
private_key_hex = local_identity.signing_key.encode().hex()
# Get keys from local_identity (works for both standard and firmware keys)
private_key_hex = local_identity.get_signing_key_bytes().hex()
public_key_hex = local_identity.get_public_key().hex()
self.letsmesh_handler = MeshCoreToMqttJwtPusher(