write
Engine.write_public_key(public_key, file_path)- Saves the public key to the specified path.
- Input:
PublicKey- 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()
public_key = engine.create_public_key(secret_key)
engine.write_public_key(public_key, "/opt/desilo/public_key")
Using a relative path