Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion meshtastic/mesh.options
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
# outside of this envelope
*Data.payload max_size:233
*Data.bitfield int_size:8
*Data.xeddsa_signature max_size:64

*NodeInfo.channel int_size:8
*NodeInfo.hops_away int_size:8
Expand Down Expand Up @@ -89,4 +90,4 @@

*ChunkedPayload.chunk_count int_size:16
*ChunkedPayload.chunk_index int_size:16
*ChunkedPayload.payload_chunk max_size:228
*ChunkedPayload.payload_chunk max_size:228
17 changes: 17 additions & 0 deletions meshtastic/mesh.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1071,6 +1071,11 @@ message Data {
* Bitfield for extra flags. First use is to indicate that user approves the packet being uploaded to MQTT.
*/
optional uint32 bitfield = 9;

/*
* XEdDSA signature for the payload
*/
bytes xeddsa_signature = 10;
}

/*
Expand Down Expand Up @@ -1469,6 +1474,11 @@ message MeshPacket {
* Indicates which transport mechanism this packet arrived over
*/
TransportMechanism transport_mechanism = 21;

/*
* Indicates whether the packet has a valid signature
*/
bool xeddsa_signed = 22;
}

/*
Expand Down Expand Up @@ -1599,6 +1609,13 @@ message NodeInfo {
* LSB 0 of the bitfield
*/
bool is_key_manually_verified = 12;

/*
* True if node is signing its packets via XEdDSA
* Persists between NodeDB internal clean ups
* LSB 1 of the bitfield
*/
bool has_xeddsa_signed = 13;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this also be on NodeInfoLite?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a bit in the bitfield on NodeInfoLite. Least Significant Bit 1, where 0 is is_key_manually_verified

}

/*
Expand Down