Versions in this module Expand all Collapse all v0 v0.4.0 Dec 9, 2019 Changes in this version + var ErrExponentialDistributionParam = errors.New("the parameter of exponential distribution has to be larger than zero") + var ErrInvalidLocalIP = errors.New("couldn't find a valid IP for your machine, check your internet connection") + var ErrPermEmptyList = errors.New("cannot permute an empty list of mixes") + var ErrTooBigSampleSize = errors.New("cannot take a sample larger than the given list") + func DirExists(path string) (bool, error) + func EnsureDir(dir string, mode os.FileMode) error + func FromPEMFile(o encoding.BinaryUnmarshaler, f, pemType string) error + func GetLocalIP() (string, error) + func IsZeroElement(el sphinx.CryptoElement) bool + func RandomExponential(expParam float64) (float64, error) + func RandomMix(mixes []config.MixConfig) config.MixConfig + func RandomString(length int) string + func RegisterMixNodePresence(publicKey *sphinx.PublicKey, layer int, host ...string) error + func RegisterMixProviderPresence(publicKey *sphinx.PublicKey, clients []models.RegisteredClient, host ...string) error + func ResolveTCPAddress(host, port string) (*net.TCPAddr, error) + func SHA256(arg []byte) ([]byte, error) + func SendMixMetrics(metric models.MixMetric, host ...string) error + func ToPEMFile(o encoding.BinaryMarshaler, f, pemType string) error