Adds public_key and private_key for PKI

co-authored-by: edinnen
pull/542/head
Jonathan Bennett 2024-08-04 22:36:33 -05:00
rodzic d0fe91ab99
commit d55be9e855
2 zmienionych plików z 14 dodań i 0 usunięć

Wyświetl plik

@ -3,6 +3,8 @@
*macaddr max_size:6 fixed_length:true # macaddrs
*id max_size:16 # node id strings
*public_key max_size:32 # public key
*private_key max_size:32 # private key
*User.long_name max_size:40
*User.short_name max_size:5

Wyświetl plik

@ -665,6 +665,12 @@ message User {
* Indicates that the user's role in the mesh
*/
Config.DeviceConfig.Role role = 7;
/*
* The public key of the user's device.
* This is sent out to other nodes on the mesh to allow them to compute a shared secret key.
*/
bytes public_key = 8;
}
/*
@ -1329,6 +1335,12 @@ message MyNodeInfo {
* Phone/PC apps should compare this to their build number and if too low tell the user they must update their app
*/
uint32 min_app_version = 11;
/*
* The private key of the device.
* This is used to create a shared key with a remote device.
*/
bytes private_key = 12;
}
/*