Module load_secret_key

Source
Expand description

Helper function to load a secret key from a file.

Enums§

SecretKeyError
Errors returned by loading a [SecretKey], including IO errors.

Functions§

get_secret_key
Attempts to load a [SecretKey] from a specified path. If no file exists there, then it generates a secret key and stores it in the provided path. I/O errors might occur during write operations in the form of a SecretKeyError
rng_secret_key
Convenience function to create a new random [SecretKey]