mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-04-25 22:52:21 +00:00
The MeshCore default Public channel uses well-known PSK 8b3387e9c5cdea6ac9e5edbaa115cd72 — it is part of the firmware spec, not a community-named channel. Don't rely on the rainbow JSON to ship it; bake it into a builtinChannelKeys() floor that loads before the rainbow file. Rainbow / hashChannels / explicit config can still override it (priority order preserved). This means fresh deploys decrypt default Public traffic out of the box even if channel-rainbow.json is missing or stale. Tests: - TestLoadChannelKeysBuiltinPublic: confirms Public is present with no rainbow / config. - TestLoadChannelKeysBuiltinOverridable: confirms explicit config still wins.