Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IntToBytes ¶
IntToBytes converts an integer to big endian byte slice Because int can be 32 or 64 bits, it is always treated as 64 for the purposes of this function.
func NewID ¶
NewID creates a new ID by hashing the public key with a random 256-bit salt and appending the ID type. IDs are used by cMix to identify users, gateways, servers, and other network services (refer to id.Type)
func PublicKeyBytes ¶
PublicKeyBytes converts an RSA public key to a byte representation Specifically N's bytes concatenated with the public exponent concatenated at the end
Types ¶
Click to show internal directories.
Click to hide internal directories.