Sendtext: Documentation not obvious that Direct Mesage is unencrypted

Aberta
#820 1 comentário 1 reação 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
55/100
Tipo de issue
Documentação
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
python
Domínio
api, documentation

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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!

Linguagem predominante
Python
Estrelas
855
Forks
355
Merge médio
3d 3h
PRs com merge (30d)
12

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de meshtastic/python

Todas as issues de meshtastic/python

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.