[2.8] Store Meshtastic identity evidence + predicted 2.8 node ID

Aperta
#439 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
40/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
backend, database

Direzione di ricerca

Start with the ObservedNode and ManagedNode models and the NodeInfoPacket history they are backfilled from, then look at the existing migrations and management commands for the pattern to follow. Add a normalised hex public key and an indexed crc32 id to ObservedNode, and meshtastic_public_key to ManagedNode, then extend the admin list filter. Done when the migration applies, the backfill is idempotent, malformed keys yield null, and a known test key predicts the expected id. Firmware reference: NodeDB.cpp:543.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement meshtastic-2.8

Part of pskillen/meshflow-api#437 (Meshtastic 2.8.x support). Code: ID-1 · Priority: Must · Size: M

Summary

In 2.8, node number = crc32(public_key) (firmware NodeDB.cpp:543). Upgrades reuse the existing private key, so we can predict each node's 2.8 number from keys we already store. Do this before any other upgrade work so links can be made the moment upgraded nodes appear.

  • ObservedNode: add a normalised public key (hex) and meshtastic_key_node_id (crc32 of the 32-byte key), indexed.
  • ManagedNode: add meshtastic_public_key.
  • Backfill command from ObservedNode and NodeInfoPacket history.

Acceptance criteria

  • Migration + idempotent backfill management command
  • Known test key predicts the expected id; cross-checked on real hardware (2.7 → 2.8.2 upgrade of a spare node)
  • Malformed / non-32-byte keys produce null, not errors
  • Admin list filter/search on predicted id

Depends on: none

Refs: Report §4.1 linking design. Worked example: !da545c78 → !4396524c (unverified).

Lingua principale
Python
Stelle
1
Fork
0
Merge medio
23h 9m
PR unite (30g)
15

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di pskillen/meshflow-api

Tutte le issue di pskillen/meshflow-api

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.