# Functions
Returns address to a slice of strings that will store the bootstrap multiaddresses once flag.Parse() is called (prior to that, it will be an empty slice).
Adds CLI arguments for key-related flags.
Sets the "-psk" flag and returns a pointer to a pre-shared key.
No description provided by the author
Uses SHA256 to hash an input string into a 256-bit value.
Generates a random PSK.
Expands tilde to absolute path Currently only works if path begins with tilde, not somewhere in the middle.
No description provided by the author
No description provided by the author
Don't like this..
If the environment variable does not exist, or if there are errors during parsing, return the 0-value of the return type.
If the environment variable does not exist, or if there are errors during parsing, return the 0-value of the return type.
Returns un-hashed PSK passphrase specified in environment variable.
Returns the un-hashed PSK passphrase of the PSK from the last time Get() was called.
Get free port on machine.
Get preferred outbound ip on machine.
For enabling tests, ideally should not be used.
No description provided by the author
No description provided by the author
Inverse of storePrivKeyToFile().
Creates a new ExpoBackoff.
Creates a new ExpoBackoffAttempts Similar to ExpoBackoff, but limited in the number of times it can sleep See example usage in comments for the Attempt() method.
Write private key to file in Base 64 format Store the key type ID followed by a space, then the key, then a new-line.
Helper function to cast a slice of strings into a slice of Multiaddrs.
Return identifying multiaddrs of the given node.
# Constants
No description provided by the author
No description provided by the author
libp2p's PSK definition is a slice of 32 bytes.
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author