From 2b59c7f519ab895847e2cd6316abcd2a28ba4cfb Mon Sep 17 00:00:00 2001 From: Jonathan Bennett Date: Tue, 20 May 2025 18:22:37 -0500 Subject: [PATCH] add nodeinfo bool/bitfield for is_manually_validated --- meshtastic/deviceonly.proto | 6 ++++++ meshtastic/mesh.proto | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/meshtastic/deviceonly.proto b/meshtastic/deviceonly.proto index 3be781f..623532a 100644 --- a/meshtastic/deviceonly.proto +++ b/meshtastic/deviceonly.proto @@ -164,6 +164,12 @@ message NodeInfoLite { * Last byte of the node number of the node that should be used as the next hop to reach this node. */ uint32 next_hop = 12; + + /* + * Bitfield for storing booleans. + * LSB 0 is_manually_validated + */ + uint32 bitfield = 13; } /* diff --git a/meshtastic/mesh.proto b/meshtastic/mesh.proto index eedc872..c2c68b5 100644 --- a/meshtastic/mesh.proto +++ b/meshtastic/mesh.proto @@ -1459,6 +1459,13 @@ message NodeInfo { * Persists between NodeDB internal clean ups */ bool is_ignored = 11; + + /* + * True if node public key has been validated. + * Persists between NodeDB internal clean ups + * LSB 0 of the bitfield + */ + bool is_manually_validated = 12; } /*