protobufs/apponly.proto
2020-12-28 13:34:14 +08:00

23 lines
No EOL
692 B
Protocol Buffer

syntax = "proto3";
option java_package = "com.geeksville.mesh";
option java_outer_classname = "AppOnly";
option optimize_for = LITE_RUNTIME;
import "mesh.proto";
/**
This message wraps a MeshPacket with extra metadata about the sender and how it arrived.
*/
message ServiceEnvelope {
/** The (probably encrypted) packet */
MeshPacket packet = 1;
/** The global channel ID it was sent on */
string channel_id = 2;
/** The sending mesh. FIXME, is this necessary? can we use this to authenticate/prevent fake
nodeid impersonation for senders - i.e. use mesh id (which is authenticated) + local node id as
the globally trusted nodenum */
string mesh_id = 3;
}