This should enable the pki_encrypted key to be set on outgoing packets to the radio, as well as the public_key (if done manually). The only place within this PR that it's set deliberately is for admin messages to a node. Later work will add three different arguments:
--force-pki / --force-pkc, which will make all packets have the pki_encrypted field set, not just admin messages
--public-key, which allows passing a public key to use for the public_key field
--legacy-admin, which removes pki_encrypted from admin packets but expects the presence of an admin channel for remote node admin.
This should enable the
pki_encrypted
key to be set on outgoing packets to the radio, as well as thepublic_key
(if done manually). The only place within this PR that it's set deliberately is for admin messages to a node. Later work will add three different arguments:--force-pki
/--force-pkc
, which will make all packets have thepki_encrypted
field set, not just admin messages--public-key
, which allows passing a public key to use for thepublic_key
field--legacy-admin
, which removespki_encrypted
from admin packets but expects the presence of anadmin
channel for remote node admin.But I wanted to get this part of it up at least.