NodeID and Address

Hi,

I would like to automate devices being added to a zerotier network during our installation process without the device being powered on before (so it has not joined the network yet). We do generate the identity.secret and identity.public keys beforehand.

I already did some research:

  • in the central UI there is a section to manually add nodes to a network based on the NODE ID. But until now it is unclear how that node ID is created.
  • I know the address is derived from the identity.public file, I also found the specific cpp code that does this. Unfortunate that this is not part of the zerotier-idtool.
  • I know these calls could all be made via the central api