mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
feat: show names with a lock for DMs using PKC
This commit is contained in:
parent
7e1ab62568
commit
2433cbc00a
3 changed files with 9 additions and 3 deletions
|
|
@ -167,6 +167,9 @@ data class DataPacket(
|
|||
/// special broadcast address
|
||||
const val NODENUM_BROADCAST = (0xffffffff).toInt()
|
||||
|
||||
// Public-key cryptography (PKC) channel index
|
||||
const val PKC_CHANNEL_INDEX = 8
|
||||
|
||||
fun nodeNumToDefaultId(n: Int): String = "!%08x".format(n)
|
||||
fun idToDefaultNodeNum(id: String?): Int? = id?.toLong(16)?.toInt()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue