Package idf contains the structure of the ID File. It holds a generated ID
and a salt (a 256-bit random number) in a JSON file. This file is used by
different entities to save their ID and salt to file. The file path is
usually stored and referenced from each entity's configuration files.
type IdFile struct {
ID *id.ID `json:"id"`
Type string `json:"type"`
Salt [saltLen]byte `json:"salt"`
IdBytes [id.ArrIDLen]byte `json:"idBytes"`
HexNodeID string `json:"hexNodeID"`
}
IdFile is used to save IDs and salts to file in a human-readable form.