A Tonido peer identification system needs to satisfy several requirements.
Peer ID Requirements
So a PeerID in Tonido is composed of the following:
Domain is the Tonido Domain Server to which the Peer is attached. The Domain part is generally a string which is of the form of Host:Port. Note that the Host can be a IPv4 address, (future IPv6 address) or a resolvable host name (like www.yahoo.com).
Nickname is an optional user chosen handle. This is also a variable length string.
Valid Peer Ids
In Tonido, PeerIDs are represented using the PeerID object.