write
Engine.write_secret_key(secret_key, file_path)- Saves the secret key to the specified path.
- Input:
SecretKey- file_path:
str | pathlib.Path- Can be an absolute or relative path.
- Output:
None
Examples
Using an absolute path
from desilofhe import Engine
engine = Engine()
secret_key = engine.create_secret_key()
engine.write_secret_key(secret_key, "/opt/desilo/secret_key")
Using a relative path