Sendtext: Documentation not obvious that Direct Mesage is unencrypted

Abierto
#820 1 comentario 1 reacción 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
55/100
Tipo de issue
Documentación
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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!

Lenguaje dominante
Python
Estrellas
855
Forks
355
Merge medio
3 d 3 h
PR fusionados (30 d)
12

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de meshtastic/python

Todos los issues de meshtastic/python

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.