From bc465e6522d442b47064d015daf49051fd65ba6f Mon Sep 17 00:00:00 2001 From: Jonathan Bennett Date: Mon, 5 Aug 2024 12:04:21 -0500 Subject: [PATCH] Add the key used to PKI decrypt to MeshPacket --- meshtastic/mesh.proto | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/meshtastic/mesh.proto b/meshtastic/mesh.proto index 19f93e2..cbf73dc 100644 --- a/meshtastic/mesh.proto +++ b/meshtastic/mesh.proto @@ -1127,6 +1127,16 @@ message MeshPacket { * When receiving a packet, the difference between hop_start and hop_limit gives how many hops it traveled. */ uint32 hop_start = 15; + + /* + * Records the public key the packet was encrypted with, if applicable. + */ + bytes public_key = 16; + + /* + * Indicates whether the packet was en/decrypted using PKI + */ + bool pki_encrypted = 17; } /*