From 2b59c7f519ab895847e2cd6316abcd2a28ba4cfb Mon Sep 17 00:00:00 2001 From: Jonathan Bennett Date: Tue, 20 May 2025 18:22:37 -0500 Subject: [PATCH 1/3] 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 3be781f4d..623532ab4 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 eedc87240..c2c68b5bf 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; } /* From 08d7a07a4a94bd2ecb7e73e1bc577ca84180b745 Mon Sep 17 00:00:00 2001 From: Jonathan Bennett Date: Tue, 20 May 2025 19:25:52 -0500 Subject: [PATCH 2/3] Better name for is_key_manually_verified --- meshtastic/deviceonly.proto | 2 +- meshtastic/mesh.proto | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/meshtastic/deviceonly.proto b/meshtastic/deviceonly.proto index 623532ab4..acde0f1c5 100644 --- a/meshtastic/deviceonly.proto +++ b/meshtastic/deviceonly.proto @@ -167,7 +167,7 @@ message NodeInfoLite { /* * Bitfield for storing booleans. - * LSB 0 is_manually_validated + * LSB 0 is_key_manually_verified */ uint32 bitfield = 13; } diff --git a/meshtastic/mesh.proto b/meshtastic/mesh.proto index c2c68b5bf..74898c3fa 100644 --- a/meshtastic/mesh.proto +++ b/meshtastic/mesh.proto @@ -1465,7 +1465,7 @@ message NodeInfo { * Persists between NodeDB internal clean ups * LSB 0 of the bitfield */ - bool is_manually_validated = 12; + bool is_key_manually_verified = 12; } /* From 117ea15f6fa5a3ce4eff707653fc2f6712fadd0f Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Tue, 20 May 2025 19:41:21 -0500 Subject: [PATCH 3/3] Update mesh.proto --- meshtastic/mesh.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshtastic/mesh.proto b/meshtastic/mesh.proto index 74898c3fa..6d7798f78 100644 --- a/meshtastic/mesh.proto +++ b/meshtastic/mesh.proto @@ -1461,7 +1461,7 @@ message NodeInfo { bool is_ignored = 11; /* - * True if node public key has been validated. + * True if node public key has been verified. * Persists between NodeDB internal clean ups * LSB 0 of the bitfield */