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