Format + lint

This commit is contained in:
jkingsman
2026-03-26 17:59:59 -07:00
parent 1405df6039
commit 79d5e69ee0
6 changed files with 5 additions and 7 deletions
+1
View File
@@ -20,6 +20,7 @@ from datetime import datetime
from typing import Any, Protocol
import aiomqtt
from app.fanout.mqtt_base import BaseMqttPublisher
from app.keystore import ed25519_sign_expanded
from app.path_utils import parse_packet_envelope, split_path_hex
+1
View File
@@ -56,6 +56,7 @@ _REUPLOAD_SECONDS = 3600
# blocklist so that new roles cannot accidentally start populating the map.
_ALLOWED_DEVICE_ROLES = {2, 3}
def _get_radio_params() -> dict:
"""Read radio frequency parameters from the connected radio's self_info.
+1 -4
View File
@@ -13,7 +13,6 @@ import logging
from typing import TYPE_CHECKING
import nacl.bindings
from meshcore import EventType
from app.decoder import derive_public_key
@@ -38,9 +37,7 @@ _private_key: bytes | None = None
_public_key: bytes | None = None
def ed25519_sign_expanded(
message: bytes, scalar: bytes, prefix: bytes, public_key: bytes
) -> bytes:
def ed25519_sign_expanded(message: bytes, scalar: bytes, prefix: bytes, public_key: bytes) -> bytes:
"""Sign a message using MeshCore's expanded Ed25519 key format.
MeshCore stores 64-byte keys as scalar(32) || prefix(32). Standard