Module load_secret_key
Available on crate feature
cli
only.Expand description
Helper function to load a secret key from a file.
Enums§
- Secret
KeyError - 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 aSecretKeyError
- rng_
secret_ key - Convenience function to create a new random
SecretKey