Condi:UserId specification
From Freehackers
Every node on a Condi network has an unique ID, composed of 240 bits. This UserId is used to identify a node among the other one, and is one of the credentials you need to share with your friends in order to be able to connect with them.
Contents |
[edit] Creation
The UserId is created on the first launch of condi, and is stored in the settings(config) backend. The 240 bits are taken randomly.
[edit] Sharing
From the file menu in condi, you can either display your own UserId, or open a new mail with this information, in order to send it to a friend.
[edit] Network Transfer
When a UserId needs to be sent over a network (as in the Condi:Protocol specification), the UserId is sent as a sequence of 30 bytes.
[edit] Display
The UserId is composed of 30 bytes, which are displayed as 6 blocks of 10 hexadecimal characters, separated by an hyphen '-'. (0x2d in ASCII). Example :
1e44e3008a-a4330c581d-6b8519df0c-702ae7471f-3a8121f97a-572fdc0667
Each byte is displayed as two hexadecimal characters, the first character represents the upper nibble, and the second character represents the lower nibble. For example, the UserId
unsigned char UserId[] = { 0x3b, 0x12, ...
would be displayed as
3b12...