Sendtext: Documentation not obvious that Direct Mesage is unencrypted

Aperta
#820 1 commento 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
55/100
Tipo di issue
Documentazione
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
api, documentation

Direzione di ricerca

Start with the sendText and sendData methods in meshtastic/mesh_interface.py, the lines the issue links to, and read how each one sets encryption and when publicKey is used. Done when their docstrings say that sendText sends direct messages unencrypted and that sendData with pkiEncrypted=True does not need publicKey. The issue also floats a new SendDMEncrypted API, which is a design question, so leave that out of a first pass.

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

Descrizione

Hello!

This is coming from: https://gitlab.com/kop316/gtk-meshtastic-client/-/issues/25

It was not obvious that sendtext() is unencrypted for Direct Messaging, even for devices with updated firmware:

https://github.com/meshtastic/python/blob/master/meshtastic/mesh_interface.py#L406

I only found this out when I looked at sendData():

https://github.com/meshtastic/python/blob/master/meshtastic/mesh_interface.py#L495

I think it would be good to make this a bit more obvious in the code, and maybe to have an API like SendDMEncrypted()

It would also be nice have documentation on sendData() to say that the publicKey is not required when setting pkiEncrypted is True, as that took a bit of guess and check to confirm this was the case.

Thank you!

Lingua principale
Python
Stelle
855
Fork
355
Merge medio
3g 3h
PR unite (30g)
12

Preparare l'ambiente

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 meshtastic/python

Tutte le issue di meshtastic/python

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.