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

Đang mở
#439 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
40/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
backend, database

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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).

Ngôn ngữ chính
Python
Star
1
Fork
0
Merge trung bình
23 giờ 9 phút
Pull request đã merge (30 ngày)
15

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của pskillen/meshflow-api

Tất cả issue của pskillen/meshflow-api

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.